@Override public WebResource[] listResources(String path) { return listResources(path, true); }
@Override public WebResource[] listResources(String path) { return listResources(path, true); }
@Override public WebResource[] listResources(String path) { return listResources(path, true); }
@Override public WebResource[] listResources( String path ) { log.debug( "MyDirContext#listResources: " + path ); return super.listResources( path ); }
private void processWebInfLib() { WebResource[] possibleJars = listResources("/WEB-INF/lib", false); for (WebResource possibleJar : possibleJars) { if (possibleJar.isFile() && possibleJar.getName().endsWith(".jar")) { createWebResourceSet(ResourceSetType.CLASSES_JAR, "/WEB-INF/classes", possibleJar.getURL(), "/"); } } }
/** * Class loader resources are handled by treating JARs in WEB-INF/lib as * resource JARs (without the internal META-INF/resources/ prefix) mounted * at WEB-INF/classes (rather than the web app root). This enables reuse * of the resource handling plumbing. * * These resources are marked as class loader only so they are only used in * the methods that are explicitly defined to return class loader resources. * This prevents calls to getResource("/WEB-INF/classes") returning from one * or more of the JAR files. * * @throws LifecycleException If an error occurs that should stop the web * application from starting */ protected void processWebInfLib() throws LifecycleException { WebResource[] possibleJars = listResources("/WEB-INF/lib", false); for (WebResource possibleJar : possibleJars) { if (possibleJar.isFile() && possibleJar.getName().endsWith(".jar")) { createWebResourceSet(ResourceSetType.CLASSES_JAR, "/WEB-INF/classes", possibleJar.getURL(), "/"); } } }
/** * Class loader resources are handled by treating JARs in WEB-INF/lib as * resource JARs (without the internal META-INF/resources/ prefix) mounted * at WEB-INF/classes (rather than the web app root). This enables reuse * of the resource handling plumbing. * * These resources are marked as class loader only so they are only used in * the methods that are explicitly defined to return class loader resources. * This prevents calls to getResource("/WEB-INF/classes") returning from one * or more of the JAR files. * * @throws LifecycleException If an error occurs that should stop the web * application from starting */ protected void processWebInfLib() throws LifecycleException { WebResource[] possibleJars = listResources("/WEB-INF/lib", false); for (WebResource possibleJar : possibleJars) { if (possibleJar.isFile() && possibleJar.getName().endsWith(".jar")) { createWebResourceSet(ResourceSetType.CLASSES_JAR, "/WEB-INF/classes", possibleJar.getURL(), "/"); } } }