Package org.joinfaces.servlet
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidList<Class<? extends EventListener>>voidsetContextParams(Map<String, String> contextParams) voidsetErrorPages(List<ErrorPage> errorPages) voidsetListeners(List<Class<? extends EventListener>> listeners)
-
Constructor Details
-
WebFragmentRegistrationBean
public WebFragmentRegistrationBean()
-
-
Method Details
-
customize
- Specified by:
customizein interfaceWebServerFactoryCustomizer<ConfigurableServletWebServerFactory>
-
getListeners
-
getErrorPages
-
getContextParams
-
setListeners
-
setErrorPages
-
setContextParams
-