public class ClassPathProcessApplicationScanner extends Object implements 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
Constructor and Description |
---|
ClassPathProcessApplicationScanner() |
Modifier and Type | Method and Description |
---|---|
protected void |
addResource(Object source,
Map<String,byte[]> resourceMap,
String resourceRootPath,
String resourceName) |
Map<String,byte[]> |
findResources(ClassLoader classLoader,
String paResourceRootPath,
URL metaFileUrl) |
protected void |
handleArchive(File file,
String paResourceRootPath,
Map<String,byte[]> resourceMap) |
protected void |
handleDirectory(File directory,
String rootPath,
String localPath,
String paResourceRootPath,
boolean isPaLocal,
Map<String,byte[]> resourceMap) |
protected boolean |
isBelowPath(String processFileName,
String paResourceRootPath) |
protected Enumeration<URL> |
loadClasspathResourceRoots(ClassLoader classLoader,
String strippedPaResourceRootPath) |
void |
scanPaResourceRootPath(ClassLoader classLoader,
URL metaFileUrl,
String paResourceRootPath,
Map<String,byte[]> resourceMap) |
protected void |
scanPath(String urlPath,
String paResourceRootPath,
boolean isPaLocal,
Map<String,byte[]> resourceMap) |
protected void |
scanUrl(URL url,
String paResourceRootPath,
boolean isPaLocal,
Map<String,byte[]> resourceMap) |
public Map<String,byte[]> findResources(ClassLoader classLoader, String paResourceRootPath, URL metaFileUrl)
findResources
in interface ProcessApplicationScanner
classLoader
- the classloader to scanpaResourceRootPath
- see ProcessArchiveXml.PROP_RESOURCE_ROOT_PATH
metaFileUrl
- the URL to the META-INF/processes.xml filepublic void scanPaResourceRootPath(ClassLoader classLoader, URL metaFileUrl, String paResourceRootPath, Map<String,byte[]> resourceMap)
protected void scanUrl(URL url, String paResourceRootPath, boolean isPaLocal, Map<String,byte[]> resourceMap)
protected void scanPath(String urlPath, String paResourceRootPath, boolean isPaLocal, Map<String,byte[]> resourceMap)
protected void handleArchive(File file, String paResourceRootPath, Map<String,byte[]> resourceMap)
protected void handleDirectory(File directory, String rootPath, String localPath, String paResourceRootPath, boolean isPaLocal, Map<String,byte[]> resourceMap)
protected void addResource(Object source, Map<String,byte[]> resourceMap, String resourceRootPath, String resourceName)
protected Enumeration<URL> loadClasspathResourceRoots(ClassLoader classLoader, String strippedPaResourceRootPath)
Copyright © 2015. All rights reserved.