public class Container
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Class and Description |
---|---|
static class |
Container.DeploymentRequest |
Modifier and Type | Field and Description |
---|---|
protected Configuration |
configuration |
Constructor and Description |
---|
Container() |
Container(Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
org.apache.catalina.Context |
addContext(java.lang.String context,
java.lang.String path) |
void |
await() |
void |
close() |
protected Connector |
createConnector() |
Container |
deploy(Container.DeploymentRequest request) |
AppContext |
deploy(java.lang.String name,
java.io.File file) |
AppContext |
deploy(java.lang.String name,
java.io.File file,
boolean overrideName) |
Container |
deployClasspathAsWebApp() |
Container |
deployClasspathAsWebApp(java.lang.String context,
java.io.File docBase,
boolean singleClassLoader) |
Container |
deployClasspathAsWebApp(java.lang.String context,
java.io.File docBase,
java.util.List<java.lang.String> callers,
boolean singleLoader,
java.lang.String... dependencies) |
Container |
deployClasspathAsWebApp(java.lang.String context,
java.io.File docBase,
java.util.List<java.lang.String> callers,
java.lang.String... dependencies) |
Container |
deployClasspathAsWebApp(java.lang.String context,
java.io.File docBase,
java.lang.String... dependencies) |
Container |
deployPathsAsWebapp(java.io.File... jarList) |
Container |
deployPathsAsWebapp(java.lang.String context,
java.util.List<java.net.URL> jarList,
java.io.File docBase,
boolean keepClassloader,
java.lang.String... additionalCallers) |
Container |
deployPathsAsWebapp(java.lang.String context,
java.util.List<java.net.URL> jarList,
java.io.File docBase,
java.lang.String... additionalCallers) |
AppContext |
getAppContexts(java.lang.String moduleId) |
java.io.File |
getBase() |
Configuration |
getConfiguration() |
ConfigurationFactory |
getConfigurationFactory() |
AppInfo |
getInfo(java.lang.String name) |
javax.naming.Context |
getJndiContext() |
Tomcat |
getTomcat() |
Container |
inject(java.lang.Object instance) |
void |
setup(Configuration configuration) |
void |
start() |
void |
stop() |
void |
undeploy(java.lang.String name) |
protected Configuration configuration
public Container(Configuration configuration)
public Container()
public Container deployClasspathAsWebApp()
public Container deployClasspathAsWebApp(java.lang.String context, java.io.File docBase, java.lang.String... dependencies)
public Container deployClasspathAsWebApp(java.lang.String context, java.io.File docBase, boolean singleClassLoader)
public Container deployClasspathAsWebApp(java.lang.String context, java.io.File docBase, java.util.List<java.lang.String> callers, java.lang.String... dependencies)
public Container deployClasspathAsWebApp(java.lang.String context, java.io.File docBase, java.util.List<java.lang.String> callers, boolean singleLoader, java.lang.String... dependencies)
public Container deployPathsAsWebapp(java.io.File... jarList)
public Container deployPathsAsWebapp(java.lang.String context, java.util.List<java.net.URL> jarList, java.io.File docBase, java.lang.String... additionalCallers)
public Container deployPathsAsWebapp(java.lang.String context, java.util.List<java.net.URL> jarList, java.io.File docBase, boolean keepClassloader, java.lang.String... additionalCallers)
public Container deploy(Container.DeploymentRequest request)
public void setup(Configuration configuration)
public java.io.File getBase()
public void start() throws java.lang.Exception
java.lang.Exception
protected Connector createConnector()
public ConfigurationFactory getConfigurationFactory()
public void stop() throws java.lang.Exception
java.lang.Exception
public AppContext deploy(java.lang.String name, java.io.File file) throws OpenEJBException, java.io.IOException, javax.naming.NamingException
OpenEJBException
java.io.IOException
javax.naming.NamingException
public AppContext deploy(java.lang.String name, java.io.File file, boolean overrideName) throws OpenEJBException, java.io.IOException, javax.naming.NamingException
OpenEJBException
java.io.IOException
javax.naming.NamingException
public AppInfo getInfo(java.lang.String name)
public void undeploy(java.lang.String name) throws UndeployException, NoSuchApplicationException
public javax.naming.Context getJndiContext()
public AppContext getAppContexts(java.lang.String moduleId)
public Tomcat getTomcat()
public void await()
public void close()
close
in interface java.lang.AutoCloseable
public org.apache.catalina.Context addContext(java.lang.String context, java.lang.String path)
public Container inject(java.lang.Object instance)
public Configuration getConfiguration()