Class AbstractContainer

java.lang.Object
org.jboss.weld.environment.servlet.AbstractContainer
All Implemented Interfaces:
Container
Direct Known Subclasses:
AbstractJettyContainer, TomcatContainer

public abstract class AbstractContainer extends Object implements Container
Abstract container.
Author:
Ales Justin
  • Constructor Details

    • AbstractContainer

      public AbstractContainer()
  • Method Details

    • classToCheck

      protected abstract String classToCheck()
      Get class name to check is we can use this container.
      Returns:
      the class name to check
    • touch

      public boolean touch(org.jboss.weld.resources.spi.ResourceLoader resourceLoader, ContainerContext context) throws Exception
      Description copied from interface: Container
      Touch if this container can be used. We should throw an exception if it cannot be used.
      Specified by:
      touch in interface Container
      Parameters:
      resourceLoader - the ResourceLoader to use for class-availability testing
      context - the container context
      Returns:
      true if touch was successful, false or exception otherwise
      Throws:
      Exception - for any error
    • destroy

      public void destroy(ContainerContext context)
      Description copied from interface: Container
      Destroy setup.
      Specified by:
      destroy in interface Container
      Parameters:
      context - the container context