Class BeanManagerResourceBindingListener
java.lang.Object
org.jboss.weld.environment.servlet.BeanManagerResourceBindingListener
- All Implemented Interfaces:
jakarta.servlet.ServletContextListener,EventListener
public class BeanManagerResourceBindingListener
extends Object
implements jakarta.servlet.ServletContextListener
Emulates the behavior of the naming resource binding that is typically done
using configuration files in Tomcat and Jetty. This listener provides the ability
to bind the BeanManager to JNDI without the need for configuration.
- Author:
- Dan Allen, Christian Sadilek <csadilek@redhat.com>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextDestroyed(jakarta.servlet.ServletContextEvent sce) voidcontextInitialized(jakarta.servlet.ServletContextEvent sce)
-
Constructor Details
-
BeanManagerResourceBindingListener
public BeanManagerResourceBindingListener()
-
-
Method Details
-
contextInitialized
public void contextInitialized(jakarta.servlet.ServletContextEvent sce) - Specified by:
contextInitializedin interfacejakarta.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(jakarta.servlet.ServletContextEvent sce) - Specified by:
contextDestroyedin interfacejakarta.servlet.ServletContextListener
-