Class VfsProcessApplicationScanner
java.lang.Object
org.camunda.bpm.container.impl.deployment.scanning.VfsProcessApplicationScanner
- All Implemented Interfaces:
ProcessApplicationScanner
A ProcessArchiveScanner
which uses Jboss VFS for
scanning the process archive for processes.
This implementation should be used on WildFly
- Author:
- Daniel Meyer, Falko Menge
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindResources
(ClassLoader classLoader, String resourceRootPath, URL processesXml) 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)
-
Constructor Details
-
VfsProcessApplicationScanner
public VfsProcessApplicationScanner()
-
-
Method Details
-
findResources
public Map<String,byte[]> findResources(ClassLoader classLoader, String resourceRootPath, URL processesXml) - Specified by:
findResources
in interfaceProcessApplicationScanner
- Parameters:
classLoader
- the classloader to scanresourceRootPath
- seeProcessArchiveXml.PROP_RESOURCE_ROOT_PATH
processesXml
- the URL to the META-INF/processes.xml file- Returns:
- a Map of process definitions
-
findResources
public Map<String,byte[]> findResources(ClassLoader classLoader, String resourceRootPath, URL processesXml, String[] additionalResourceSuffixes) - Specified by:
findResources
in interfaceProcessApplicationScanner
- Parameters:
classLoader
- the classloader to scanresourceRootPath
- seeProcessArchiveXml.PROP_RESOURCE_ROOT_PATH
processesXml
- the URL to the META-INF/processes.xml fileadditionalResourceSuffixes
- a list of additional suffixes for resources- Returns:
- a Map of process definitions
-
getVirtualFileForUrl
-
scanRoot
-
loadClasspathResourceRoots
protected Enumeration<URL> loadClasspathResourceRoots(ClassLoader classLoader, String strippedPaResourceRootPath)
-