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) |
Map<String,byte[]> |
findResources(ClassLoader classLoader,
String resourceRootPath,
URL processesXml,
String[] additionalResourceSuffixes) |
protected org.jboss.vfs.VirtualFile |
getVirtualFileForUrl(URL url) |
protected Enumeration<URL> |
loadClasspathResourceRoots(ClassLoader classLoader,
String strippedPaResourceRootPath) |
protected void |
scanRoot(org.jboss.vfs.VirtualFile processArchiveRoot,
String[] additionalResourceSuffixes,
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 filepublic Map<String,byte[]> findResources(ClassLoader classLoader, String resourceRootPath, URL processesXml, String[] additionalResourceSuffixes)
findResources
in interface ProcessApplicationScanner
classLoader
- the classloader to scanresourceRootPath
- see ProcessArchiveXml.PROP_RESOURCE_ROOT_PATH
processesXml
- the URL to the META-INF/processes.xml fileadditionalResourceSuffixes
- a list of additional suffixes for resourcesprotected org.jboss.vfs.VirtualFile getVirtualFileForUrl(URL url)
protected void scanRoot(org.jboss.vfs.VirtualFile processArchiveRoot, String[] additionalResourceSuffixes, Map<String,byte[]> resources)
protected Enumeration<URL> loadClasspathResourceRoots(ClassLoader classLoader, String strippedPaResourceRootPath)
Copyright © 2020. All rights reserved.