本文整理了Java中org.apache.catalina.Container.getResources()
方法的一些代码示例,展示了Container.getResources()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Container.getResources()
方法的具体详情如下:
包路径:org.apache.catalina.Container
类名称: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());
内容来源于网络,如有侵权,请联系作者删除!