Class WebFragmentRegistrationBean

java.lang.Object
org.joinfaces.servlet.WebFragmentRegistrationBean
All Implemented Interfaces:
WebServerFactoryCustomizer<ConfigurableServletWebServerFactory>

public class WebFragmentRegistrationBean extends Object implements WebServerFactoryCustomizer<ConfigurableServletWebServerFactory>
RegistrationBean for web-fragment.xml files.

This is implemented as WebServerFactoryCustomizer so it only applies to embedded servlet-containers. When deployed as war file, the external servlet-container will find the web-fragment.xml file.

The main feature of this class is the way it registers listeners. They will be treated as if they were declared in a web-fragment.xml and therefore aren't affected by the restrictions of Section 4.4 of the Servlet Specification.

See Also: