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 Details

    • BeanManagerResourceBindingListener

      public BeanManagerResourceBindingListener()
  • Method Details

    • contextInitialized

      public void contextInitialized(jakarta.servlet.ServletContextEvent sce)
      Specified by:
      contextInitialized in interface jakarta.servlet.ServletContextListener
    • contextDestroyed

      public void contextDestroyed(jakarta.servlet.ServletContextEvent sce)
      Specified by:
      contextDestroyed in interface jakarta.servlet.ServletContextListener