Class VfsProcessApplicationScanner
- java.lang.Object
-
- org.camunda.bpm.container.impl.deployment.scanning.VfsProcessApplicationScanner
-
- All Implemented Interfaces:
ProcessApplicationScanner
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 WildFly
- Author:
- Daniel Meyer, Falko Menge
-
-
Constructor Summary
Constructors Constructor Description VfsProcessApplicationScanner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
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
protected org.jboss.vfs.VirtualFile getVirtualFileForUrl(URL url)
-
scanRoot
protected void scanRoot(org.jboss.vfs.VirtualFile processArchiveRoot, String[] additionalResourceSuffixes, Map<String,byte[]> resources)
-
loadClasspathResourceRoots
protected Enumeration<URL> loadClasspathResourceRoots(ClassLoader classLoader, String strippedPaResourceRootPath)
-
-