Package org.joinfaces.servlet
Class TldListenerRegistrationBean
java.lang.Object
org.joinfaces.servlet.TldListenerRegistrationBean
- All Implemented Interfaces:
org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.servlet.server.AbstractServletWebServerFactory>
public class TldListenerRegistrationBean
extends Object
implements org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.servlet.server.AbstractServletWebServerFactory>
This class registers listeners to the servlet context, which would normally registered in a tld file.
Some JSF libraries declare listeners in JSP taglib files. Undertow and Jetty (since 9.4.14.v20181114) don't find there listeners, so this class can be used as spring bean to manually add the listeners to an embedded undertow or jetty.
Also the embedded Tomcat does not find the listeners, if tomcat-embed-jasper is not deployed.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorDescriptionTldListenerRegistrationBean
(Collection<Class<? extends EventListener>> listeners) -
Method Summary
-
Constructor Details
-
TldListenerRegistrationBean
-
-
Method Details
-
customize
public void customize(org.springframework.boot.web.servlet.server.AbstractServletWebServerFactory factory) - Specified by:
customize
in interfaceorg.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.servlet.server.AbstractServletWebServerFactory>
-
builder
-