org.camunda.bpm.container.impl.deployment.scanning
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 Jboss AS 7
- Author:
- Daniel Meyer, Falko Menge
Method Summary |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VfsProcessApplicationScanner
public VfsProcessApplicationScanner()
findResources
public Map<String,byte[]> findResources(ClassLoader classLoader,
String resourceRootPath,
URL processesXml)
- Specified by:
findResources
in interface ProcessApplicationScanner
- Parameters:
classLoader
- the classloader to scanresourceRootPath
- see ProcessArchiveXml.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 interface ProcessApplicationScanner
- Parameters:
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 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)
Copyright © 2017 camunda services GmbH. All rights reserved.