Class ProcessApplicationScanningUtil
- java.lang.Object
-
- org.camunda.bpm.container.impl.deployment.scanning.ProcessApplicationScanningUtil
-
public class ProcessApplicationScanningUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description ProcessApplicationScanningUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static boolean
checkDiagram(String fileName, String modelFileName, String[] diagramSuffixes, String[] modelSuffixes)
Checks, whether a filename is a diagram for the given modelFileName.static Map<String,byte[]>
findResources(ClassLoader classLoader, String paResourceRootPath, URL metaFileUrl)
static Map<String,byte[]>
findResources(ClassLoader classLoader, String paResourceRootPath, URL metaFileUrl, String[] additionalResourceSuffixes)
static boolean
hasSuffix(String filename, String[] suffixes)
static boolean
isDeployable(String filename)
static boolean
isDeployable(String filename, String[] additionalResourceSuffixes)
static boolean
isDiagram(String fileName, String modelFileName)
-
-
-
Method Detail
-
findResources
public static Map<String,byte[]> findResources(ClassLoader classLoader, String paResourceRootPath, URL metaFileUrl)
- Parameters:
classLoader
- the classloader to scanpaResourceRootPath
- seeProcessArchiveXml.PROP_RESOURCE_ROOT_PATH
metaFileUrl
- the URL to the META-INF/processes.xml file- Returns:
- a Map of process definitions
-
findResources
public static Map<String,byte[]> findResources(ClassLoader classLoader, String paResourceRootPath, URL metaFileUrl, String[] additionalResourceSuffixes)
- Parameters:
classLoader
- the classloader to scanpaResourceRootPath
- seeProcessArchiveXml.PROP_RESOURCE_ROOT_PATH
metaFileUrl
- the URL to the META-INF/processes.xml fileadditionalResourceSuffixes
- a list of additional suffixes for resources- Returns:
- a Map of process definitions
-
isDeployable
public static boolean isDeployable(String filename)
-
isDeployable
public static boolean isDeployable(String filename, String[] additionalResourceSuffixes)
-
checkDiagram
protected 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.
-
-