public class VfsProcessApplicationScanner extends Object implements ProcessApplicationScanner
A ProcessArchiveScanner
which uses Jboss VFS for
scanning the process archive for processes.
This implementation should be used on Jboss AS 7
Constructor and Description |
---|
VfsProcessApplicationScanner() |
Modifier and Type | Method and Description |
---|---|
Map<String,byte[]> |
findResources(ClassLoader classLoader,
String resourceRootPath,
URL processesXml) |
protected org.jboss.vfs.VirtualFile |
getVirtualFileForUrl(URL url) |
protected Enumeration<URL> |
loadClasspathResourceRoots(ClassLoader classLoader,
String strippedPaResourceRootPath) |
protected void |
scanRoot(org.jboss.vfs.VirtualFile processArchiveRoot,
Map<String,byte[]> resources) |
public Map<String,byte[]> findResources(ClassLoader classLoader, String resourceRootPath, URL processesXml)
findResources
in interface ProcessApplicationScanner
classLoader
- the classloader to scanresourceRootPath
- see ProcessArchiveXml.PROP_RESOURCE_ROOT_PATH
processesXml
- the URL to the META-INF/processes.xml fileprotected org.jboss.vfs.VirtualFile getVirtualFileForUrl(URL url)
protected void scanRoot(org.jboss.vfs.VirtualFile processArchiveRoot, Map<String,byte[]> resources)
protected Enumeration<URL> loadClasspathResourceRoots(ClassLoader classLoader, String strippedPaResourceRootPath)
Copyright © 2015. All rights reserved.