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

x33g5p2x  于2022-01-18 转载在 其他  
字(7.4k)|赞(0)|评价(0)|浏览(113)

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

Container.getResources介绍

[英]Return the Resources with which this Container is associated. If there is no associated Resources object, return the Resources associated with our parent Container (if any); otherwise return null.
[中]返回与此容器关联的资源。如果没有关联的资源对象,则返回与父容器关联的资源(如果有);否则返回null

代码示例

代码示例来源:origin: org.jboss.web/jbossweb

/**
 * Return the resources DirContext object with which this Container is
 * associated.  If there is no associated resources object, return the
 * resources associated with our parent Container (if any); otherwise
 * return <code>null</code>.
 */
public DirContext getResources() {
  if (resources != null)
    return (resources);
  if (parent != null)
    return (parent.getResources());
  return (null);
}

代码示例来源:origin: tomcat/catalina

/**
 * Return the resources DirContext object with which this Container is
 * associated.  If there is no associated resources object, return the
 * resources associated with our parent Container (if any); otherwise
 * return <code>null</code>.
 */
public DirContext getResources() {
  if (resources != null)
    return (resources);
  if (parent != null)
    return (parent.getResources());
  return (null);
}

代码示例来源:origin: jboss.web/jbossweb

/**
 * Return the resources DirContext object with which this Container is
 * associated.  If there is no associated resources object, return the
 * resources associated with our parent Container (if any); otherwise
 * return <code>null</code>.
 */
public DirContext getResources() {
  if (resources != null)
    return (resources);
  if (parent != null)
    return (parent.getResources());
  return (null);
}

代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina

/**
 * Return the resources DirContext object with which this Container is
 * associated.  If there is no associated resources object, return the
 * resources associated with our parent Container (if any); otherwise
 * return <code>null</code>.
 */
@Override
public DirContext getResources() {
  if (resources != null)
    return (resources);
  if (parent != null)
    return (parent.getResources());
  return (null);
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

/**
 * Return the resources DirContext object with which this Container is
 * associated.  If there is no associated resources object, return the
 * resources associated with our parent Container (if any); otherwise
 * return <code>null</code>.
 */
@Override
public DirContext getResources() {
  if (resources != null)
    return (resources);
  if (parent != null)
    return (parent.getResources());
  return (null);
}

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

/**
 * Return the resources DirContext object with which this Container is
 * associated.  If there is no associated resources object, return the
 * resources associated with our parent Container (if any); otherwise
 * return <code>null</code>.
 */
@Override
public DirContext getResources() {
  if (resources != null)
    return (resources);
  if (parent != null)
    return (parent.getResources());
  return (null);
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

/**
 * Return the resources DirContext object with which this Container is
 * associated.  If there is no associated resources object, return the
 * resources associated with our parent Container (if any); otherwise
 * return <code>null</code>.
 */
@Override
public DirContext getResources() {
  if (resources != null)
    return (resources);
  if (parent != null)
    return (parent.getResources());
  return (null);
}

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * Return the resources DirContext object with which this Container is
 * associated.  If there is no associated resources object, return the
 * resources associated with our parent Container (if any); otherwise
 * return <code>null</code>.
 */
@Override
public DirContext getResources() {
  if (resources != null)
    return (resources);
  if (parent != null)
    return (parent.getResources());
  return (null);
}

代码示例来源:origin: org.glassfish.main.web/web-core

/**
 * Return the resources DirContext object with which this Container is
 * associated.  If there is no associated resources object, return the
 * resources associated with our parent Container (if any); otherwise
 * return <code>null</code>.
 */
public DirContext getResources() {
  try {
    readLock.lock();
    if (resources != null)
      return (resources);
  } finally {
    readLock.unlock();
  }
  if (parent != null)
    return (parent.getResources());
  return (null);
}

代码示例来源:origin: org.glassfish.main.web/web-core

started = true;
if (container.getResources() == null) {
  if (log.isLoggable(Level.INFO)) {
    log.log(Level.INFO, LogFacade.NO_RESOURCE_INFO, container);
  classLoader.setResources(container.getResources());
  classLoader.setDebug(this.debug);
  classLoader.setDelegate(this.delegate);
      this.container.getResources());

代码示例来源:origin: org.apache.openejb/tomee-catalina

@Override protected void startInternal() throws LifecycleException {
  super.startInternal();
  final ClassLoader webappCl = super.getClassLoader();
  tomEEClassLoader = new TomEEClassLoader(appPath, appClassLoader, webappCl);
  try {
     DirContextURLStreamHandler.bind(tomEEClassLoader, getContainer().getResources());
  } catch (Throwable t) {
    ExceptionUtils.handleThrowable(t);
    throw new LifecycleException("start: ", t);
  }
}

代码示例来源:origin: tomcat/catalina

started = true;
if (container.getResources() == null) {
  log.info("No resources for " + container);
  return;
  classLoader.setResources(container.getResources());
  classLoader.setDelegate(this.delegate);
  if (container instanceof StandardContext)
    ((ClassLoader) classLoader, this.container.getResources());

代码示例来源:origin: org.glassfish.main.web/web-core

try {
  compCtx.bind("Resources", 
         ((Container) container).getResources());
} catch (NamingException e) {
  String msg = MessageFormat.format(rb.getString(LogFacade.BIND_OBJECT_FAILED), e);

代码示例来源:origin: tomcat/catalina

try {
  compCtx.bind("Resources", 
         ((Container) container).getResources());
} catch (NamingException e) {
  logger.error(sm.getString("naming.bindFailed", e));

代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina

try {
  compCtx.bind("Resources", 
         ((Container) container).getResources());
} catch (NamingException e) {
  logger.error(sm.getString("naming.bindFailed", e));

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

try {
  compCtx.bind("Resources", 
         ((Container) container).getResources());
} catch (NamingException e) {
  logger.error(sm.getString("naming.bindFailed", e));

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

try {
  compCtx.bind("Resources", 
         ((Container) container).getResources());
} catch (NamingException e) {
  logger.error(sm.getString("naming.bindFailed", e));

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

try {
  compCtx.bind("Resources", 
         ((Container) container).getResources());
} catch (NamingException e) {
  logger.error(sm.getString("naming.bindFailed", e));

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

log.debug(sm.getString("webappLoader.starting"));
if (container.getResources() == null) {
  log.info("No resources for " + container);
  setState(LifecycleState.STARTING);
  classLoader.setResources(container.getResources());
  classLoader.setDelegate(this.delegate);
  classLoader.setSearchExternalFirst(searchExternalFirst);
      this.container.getResources());

代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina

log.debug(sm.getString("webappLoader.starting"));
if (container.getResources() == null) {
  log.info("No resources for " + container);
  setState(LifecycleState.STARTING);
  classLoader.setResources(container.getResources());
  classLoader.setDelegate(this.delegate);
  classLoader.setSearchExternalFirst(searchExternalFirst);
      this.container.getResources());

相关文章

微信公众号

最新文章

更多