org.jboss.weld.environment
Class AbstractContainer

java.lang.Object
  extended by org.jboss.weld.environment.AbstractContainer
All Implemented Interfaces:
Container
Direct Known Subclasses:
AbstractJettyContainer, Tomcat6Container, Tomcat7Container

public abstract class AbstractContainer
extends Object
implements Container

Abstract container.

Author:
Ales Justin

Field Summary
protected  org.slf4j.Logger log
           
 
Constructor Summary
AbstractContainer()
           
 
Method Summary
protected abstract  String classToCheck()
          Get class name to check is we can use this container.
 void destroy(ContainerContext context)
          Destroy setup.
 boolean touch(ContainerContext context)
          Touch if this container can be used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.weld.environment.Container
initialize
 

Field Detail

log

protected final org.slf4j.Logger log
Constructor Detail

AbstractContainer

public AbstractContainer()
Method Detail

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(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:
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


Copyright © 2013 Seam Framework. All Rights Reserved.