本文整理了Java中org.apache.catalina.Loader.setContainer()
方法的一些代码示例,展示了Loader.setContainer()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Loader.setContainer()
方法的具体详情如下:
包路径:org.apache.catalina.Loader
类名称:Loader
方法名:setContainer
[英]Set the Container with which this Loader has been associated.
[中]
代码示例来源:origin: org.apache.geronimo.modules/geronimo-tomcat6
public void setContainer(Container container) {
delegate.setContainer(container);
}
代码示例来源:origin: org.apache.geronimo.modules/geronimo-tomcat
public void setContainer(Container container) {
delegate.setContainer(container);
}
代码示例来源:origin: jboss.web/jbossweb
loader.setContainer(this);
if (started && (loader != null) &&
(loader instanceof Lifecycle)) {
代码示例来源:origin: org.glassfish.main.web/web-core
loader.setContainer(this);
if (started && (loader != null) &&
(loader instanceof Lifecycle)) {
代码示例来源:origin: tomcat/catalina
loader.setContainer(this);
if (started && (loader != null) &&
(loader instanceof Lifecycle)) {
代码示例来源:origin: org.jboss.web/jbossweb
loader.setContainer(this);
if (started && (loader != null) &&
(loader instanceof Lifecycle)) {
代码示例来源:origin: org.switchyard/switchyard-deploy-jboss-as7
loader.setContainer(host);
serverContext.setLoader(loader);
serverContext.setInstanceManager(new LocalInstanceManager());
代码示例来源:origin: org.jboss.as/jboss-as-webservices-server-integration
loader.setContainer(host);
context.setLoader(loader);
context.setInstanceManager(new LocalInstanceManager());
代码示例来源:origin: jboss-switchyard/release
loader.setContainer(host);
serverContext.setLoader(loader);
serverContext.setInstanceManager(new LocalInstanceManager());
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
loader.setContainer(this);
if (getState().isAvailable() && (loader != null) &&
(loader instanceof Lifecycle)) {
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
loader.setContainer(this);
if (getState().isAvailable() && (loader != null) &&
(loader instanceof Lifecycle)) {
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
loader.setContainer(this);
if (getState().isAvailable() && (loader != null) &&
(loader instanceof Lifecycle)) {
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
loader.setContainer(this);
if (getState().isAvailable() && (loader != null) &&
(loader instanceof Lifecycle)) {
代码示例来源:origin: jboss-switchyard/release
loader.setContainer(host);
_serverContext.setLoader(loader);
_serverContext.setInstanceManager(new LocalInstanceManager());
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
loader.setContainer(this);
if (getState().isAvailable() && (loader != null) &&
(loader instanceof Lifecycle)) {
代码示例来源:origin: org.switchyard/switchyard-deploy-jboss-as7
loader.setContainer(host);
_serverContext.setLoader(loader);
_serverContext.setInstanceManager(new LocalInstanceManager());
代码示例来源:origin: jboss-switchyard/release
loader.setContainer(host);
serverContext.setLoader(loader);
serverContext.setInstanceManager(new LocalInstanceManager());
代码示例来源:origin: org.switchyard/switchyard-deploy-jboss-as7
loader.setContainer(host);
serverContext.setLoader(loader);
serverContext.setInstanceManager(new LocalInstanceManager());
代码示例来源:origin: org.jboss.as/jboss-as-webservices-server-integration
private static StandardContext startWebApp(Host host, WSEndpointDeploymentUnit unit) throws Exception {
StandardContext context = new StandardContext();
try {
JBossWebMetaData jbwebMD = unit.getAttachment(WSAttachmentKeys.JBOSSWEB_METADATA_KEY);
context.setPath(jbwebMD.getContextRoot());
context.addLifecycleListener(new ContextConfig());
ServerConfigService config = (ServerConfigService)unit.getServiceRegistry().getService(WSServices.CONFIG_SERVICE).getService();
File docBase = new File(config.getValue().getServerTempDir(), jbwebMD.getContextRoot());
if (!docBase.exists()) {
docBase.mkdirs();
}
context.setDocBase(docBase.getPath());
final Loader loader = new WebCtxLoader(unit.getAttachment(WSAttachmentKeys.CLASSLOADER_KEY));
loader.setContainer(host);
context.setLoader(loader);
context.setInstanceManager(new LocalInstanceManager());
addServlets(jbwebMD, context);
host.addChild(context);
context.create();
} catch (Exception e) {
throw MESSAGES.createContextPhaseFailed(e);
}
try {
context.start();
} catch (LifecycleException e) {
throw MESSAGES.startContextPhaseFailed(e);
}
return context;
}
内容来源于网络,如有侵权,请联系作者删除!