Package org.joinfaces.servlet
Klasse WebFragmentRegistrationBean
java.lang.Object
org.joinfaces.servlet.WebFragmentRegistrationBean
- Alle implementierten Schnittstellen:
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.
- Siehe auch:
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
List
<Class<? extends EventListener>> void
setContextParams
(Map<String, String> contextParams) void
setErrorPages
(List<ErrorPage> errorPages) void
setListeners
(List<Class<? extends EventListener>> listeners)
-
Konstruktordetails
-
WebFragmentRegistrationBean
public WebFragmentRegistrationBean()
-
-
Methodendetails
-
customize
- Angegeben von:
customize
in SchnittstelleWebServerFactoryCustomizer<ConfigurableServletWebServerFactory>
-
getListeners
-
getErrorPages
-
getContextParams
-
setListeners
-
setErrorPages
-
setContextParams
-