Interface Container
-
- All Known Implementing Classes:
AbstractContainer
,AbstractJettyContainer
,GwtDevHostedModeContainer
,JettyContainer
,JettyLegacyContainer
,TomcatContainer
,UndertowContainer
public interface Container
Abstract the web container setup notion. e.g. Tomcat, Jetty, GAE, ...- Author:
- Ales Justin
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONTEXT_PARAM_CONTAINER_CLASS
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
destroy(ContainerContext context)
Destroy setup.void
initialize(ContainerContext context)
Initialize web container.boolean
touch(org.jboss.weld.resources.spi.ResourceLoader resourceLoader, ContainerContext context)
Touch if this container can be used.
-
-
-
Field Detail
-
CONTEXT_PARAM_CONTAINER_CLASS
static final String CONTEXT_PARAM_CONTAINER_CLASS
- See Also:
- Constant Field Values
-
-
Method Detail
-
touch
boolean touch(org.jboss.weld.resources.spi.ResourceLoader resourceLoader, ContainerContext context) throws Exception
Touch if this container can be used. We should throw an exception if it cannot be used.- Parameters:
resourceLoader
- the ResourceLoader to use for class-availability testingcontext
- the container context- Returns:
- true if touch was successful, false or exception otherwise
- Throws:
Exception
- for any error
-
initialize
void initialize(ContainerContext context)
Initialize web container.- Parameters:
context
- the container context
-
destroy
void destroy(ContainerContext context)
Destroy setup.- Parameters:
context
- the container context
-
-