Class WebFragmentRegistrationBean
- java.lang.Object
-
- org.joinfaces.autoconfigure.servlet.WebFragmentRegistrationBean
-
- All Implemented Interfaces:
org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory>
public class WebFragmentRegistrationBean extends Object implements org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory>
RegistrationBeanforweb-fragment.xmlfiles.This is implemented as
WebServerFactoryCustomizerso it only applies to embedded servlet-containers. When deployed as war file, the external servlet-container will find theweb-fragment.xmlfile.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.xmland therefore aren't affected by the restrictions of Section 4.4 of the Servlet Specification.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebFragmentRegistrationBean.JettyListenerAdderThisConfigurationadds listeners to the servlet-context in a non-programmatic way, so they aren't affected by the restrictions for programmatically registered listeners of Section 4.4 of the Servlet Specification.static classWebFragmentRegistrationBean.TomcatListenerAdderThisTomcatContextCustomizeradds listeners to the servlet-context in a non-programmatic way, so they aren't affected by the restrictions for programmatically registered listeners of Section 4.4 of the Servlet Specification.static classWebFragmentRegistrationBean.UndertowListenerAdderThisUndertowDeploymentInfoCustomizeradds listeners to the servlet-context in a non-programmatic way, so they aren't affected by the restrictions for programmatically registered listeners of Section 4.4 of the Servlet Specification.
-
Constructor Summary
Constructors Constructor Description WebFragmentRegistrationBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcustomize(org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory factory)
-
-
-
Method Detail
-
customize
public void customize(org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory factory)
- Specified by:
customizein interfaceorg.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory>
-
-