Class ProcessApplicationScanningUtil
java.lang.Object
org.camunda.bpm.container.impl.deployment.scanning.ProcessApplicationScanningUtil
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected static booleancheckDiagram(String fileName, String modelFileName, String[] diagramSuffixes, String[] modelSuffixes) Checks, whether a filename is a diagram for the given modelFileName.findResources(ClassLoader classLoader, String paResourceRootPath, URL metaFileUrl) findResources(ClassLoader classLoader, String paResourceRootPath, URL metaFileUrl, String[] additionalResourceSuffixes) static booleanstatic booleanisDeployable(String filename) static booleanisDeployable(String filename, String[] additionalResourceSuffixes) static boolean
- 
Constructor Details- 
ProcessApplicationScanningUtilpublic ProcessApplicationScanningUtil()
 
- 
- 
Method Details- 
findResourcespublic static Map<String,byte[]> findResources(ClassLoader classLoader, String paResourceRootPath, URL metaFileUrl) - Parameters:
- classLoader- the classloader to scan
- paResourceRootPath- see- ProcessArchiveXml.PROP_RESOURCE_ROOT_PATH
- metaFileUrl- the URL to the META-INF/processes.xml file
- Returns:
- a Map of process definitions
 
- 
findResourcespublic static Map<String,byte[]> findResources(ClassLoader classLoader, String paResourceRootPath, URL metaFileUrl, String[] additionalResourceSuffixes) - Parameters:
- classLoader- the classloader to scan
- paResourceRootPath- see- ProcessArchiveXml.PROP_RESOURCE_ROOT_PATH
- metaFileUrl- the URL to the META-INF/processes.xml file
- additionalResourceSuffixes- a list of additional suffixes for resources
- Returns:
- a Map of process definitions
 
- 
isDeployable
- 
isDeployable
- 
hasSuffix
- 
isDiagram
- 
checkDiagramprotected static boolean checkDiagram(String fileName, String modelFileName, String[] diagramSuffixes, String[] modelSuffixes) Checks, whether a filename is a diagram for the given modelFileName.- Parameters:
- fileName- filename to check.
- modelFileName- model file name.
- diagramSuffixes- suffixes of the diagram files.
- modelSuffixes- suffixes of model files.
- Returns:
- true, if a file is a diagram for the model.
 
 
-