Package org.jboss.weld.environment.jetty
Class JettyContainer
- java.lang.Object
-
- org.jboss.weld.environment.AbstractContainer
-
- org.jboss.weld.environment.jetty.AbstractJettyContainer
-
- org.jboss.weld.environment.jetty.JettyContainer
-
- All Implemented Interfaces:
Container
public class JettyContainer extends AbstractJettyContainer
Jetty 7.2+, 8.x and 9.x container.- Author:
- Ales Justin
-
-
Field Summary
Fields Modifier and Type Field Description static ContainerINSTANCE-
Fields inherited from class org.jboss.weld.environment.jetty.AbstractJettyContainer
INJECTOR_ATTRIBUTE_NAME
-
Fields inherited from interface org.jboss.weld.environment.Container
CONTEXT_PARAM_CONTAINER_CLASS
-
-
Constructor Summary
Constructors Constructor Description JettyContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringclassToCheck()Get class name to check is we can use this container.voidinitialize(ContainerContext context)Initialize web container.booleantouch(org.jboss.weld.resources.spi.ResourceLoader resourceLoader, ContainerContext context)Touch if this container can be used.-
Methods inherited from class org.jboss.weld.environment.jetty.AbstractJettyContainer
destroy
-
-
-
-
Field Detail
-
INSTANCE
public static Container INSTANCE
-
-
Method Detail
-
classToCheck
protected String classToCheck()
Description copied from class:AbstractContainerGet class name to check is we can use this container.- Specified by:
classToCheckin classAbstractContainer- Returns:
- the class name to check
-
touch
public boolean touch(org.jboss.weld.resources.spi.ResourceLoader resourceLoader, ContainerContext context) throws ExceptionDescription copied from interface:ContainerTouch if this container can be used. We should throw an exception if it cannot be used.- Specified by:
touchin interfaceContainer- Overrides:
touchin classAbstractContainer- 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
public void initialize(ContainerContext context)
Description copied from interface:ContainerInitialize web container.- Parameters:
context- the container context
-
-