Interface Container
- All Known Implementing Classes:
AbstractContainer,AbstractJettyContainer,JettyContainer,TomcatContainer,UndertowContainer
public interface Container
Abstract the web container setup notion.
e.g. Tomcat, Jetty, GAE, ...
- Author:
- Ales Justin
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy(ContainerContext context) Destroy setup.voidinitialize(ContainerContext context) Initialize web container.booleantouch(org.jboss.weld.resources.spi.ResourceLoader resourceLoader, ContainerContext context) Touch if this container can be used.
-
Field Details
-
CONTEXT_PARAM_CONTAINER_CLASS
- See Also:
-
-
Method Details
-
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
Initialize web container.- Parameters:
context- the container context
-
destroy
Destroy setup.- Parameters:
context- the container context
-