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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
List<Class<? extends EventListener>>
void
setContextParams
(Map<String, String> contextParams) void
setErrorPages
(List<ErrorPage> errorPages) void
setListeners
(List<Class<? extends EventListener>> listeners)
-
Constructor Details
-
WebFragmentRegistrationBean
public WebFragmentRegistrationBean()
-
-
Method Details
-
customize
- Specified by:
customize
in interfaceWebServerFactoryCustomizer<ConfigurableServletWebServerFactory>
-
getListeners
-
getErrorPages
-
getContextParams
-
setListeners
-
setErrorPages
-
setContextParams
-