org.apache.catalina.Loader.setContainer()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(4.3k)|赞(0)|评价(0)|浏览(102)

本文整理了Java中org.apache.catalina.Loader.setContainer()方法的一些代码示例,展示了Loader.setContainer()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Loader.setContainer()方法的具体详情如下:
包路径:org.apache.catalina.Loader
类名称:Loader
方法名:setContainer

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;
}

相关文章