Class ClassPathProcessApplicationScanner
java.lang.Object
org.camunda.bpm.container.impl.deployment.scanning.ClassPathProcessApplicationScanner
- All Implemented Interfaces:
ProcessApplicationScanner
Scans for bpmn20.xml files in the classpath of the given classloader.
Scans all branches of the classpath containing a META-INF/processes.xml file
- Author:
- Daniel Meyer, Falko Menge
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddResource(Object source, Map<String, byte[]> resourceMap, String resourceRootPath, String resourceName) findResources(ClassLoader classLoader, String paResourceRootPath, URL metaFileUrl) findResources(ClassLoader classLoader, String paResourceRootPath, URL metaFileUrl, String[] additionalResourceSuffixes) protected voidhandleArchive(File file, String paResourceRootPath, String[] additionalResourceSuffixes, Map<String, byte[]> resourceMap) protected voidhandleDirectory(File directory, String rootPath, String localPath, String paResourceRootPath, boolean isPaLocal, String[] additionalResourceSuffixes, Map<String, byte[]> resourceMap) protected booleanisBelowPath(String processFileName, String paResourceRootPath) protected Enumeration<URL>loadClasspathResourceRoots(ClassLoader classLoader, String strippedPaResourceRootPath) voidscanPaResourceRootPath(ClassLoader classLoader, URL metaFileUrl, String paResourceRootPath, String[] additionalResourceSuffixes, Map<String, byte[]> resourceMap) voidscanPaResourceRootPath(ClassLoader classLoader, URL metaFileUrl, String paResourceRootPath, Map<String, byte[]> resourceMap) protected voidscanPath(String urlPath, String paResourceRootPath, boolean isPaLocal, String[] additionalResourceSuffixes, Map<String, byte[]> resourceMap) protected voidscanUrl(URL url, String paResourceRootPath, boolean isPaLocal, String[] additionalResourceSuffixes, Map<String, byte[]> resourceMap)
-
Constructor Details
-
ClassPathProcessApplicationScanner
public ClassPathProcessApplicationScanner()
-
-
Method Details
-
findResources
public Map<String,byte[]> findResources(ClassLoader classLoader, String paResourceRootPath, URL metaFileUrl) - Specified by:
findResourcesin interfaceProcessApplicationScanner- Parameters:
classLoader- the classloader to scanpaResourceRootPath- seeProcessArchiveXml.PROP_RESOURCE_ROOT_PATHmetaFileUrl- the URL to the META-INF/processes.xml file- Returns:
- a Map of process definitions
-
findResources
public Map<String,byte[]> findResources(ClassLoader classLoader, String paResourceRootPath, URL metaFileUrl, String[] additionalResourceSuffixes) - Specified by:
findResourcesin interfaceProcessApplicationScanner- Parameters:
classLoader- the classloader to scanpaResourceRootPath- seeProcessArchiveXml.PROP_RESOURCE_ROOT_PATHmetaFileUrl- the URL to the META-INF/processes.xml fileadditionalResourceSuffixes- a list of additional suffixes for resources- Returns:
- a Map of process definitions
-
scanPaResourceRootPath
public void scanPaResourceRootPath(ClassLoader classLoader, URL metaFileUrl, String paResourceRootPath, Map<String, byte[]> resourceMap) -
scanPaResourceRootPath
-
scanUrl
-
scanPath
-
handleArchive
-
handleDirectory
-
addResource
-
loadClasspathResourceRoots
protected Enumeration<URL> loadClasspathResourceRoots(ClassLoader classLoader, String strippedPaResourceRootPath) -
isBelowPath
-