public class ProcessApplicationScanningUtil extends Object
Constructor and Description |
---|
ProcessApplicationScanningUtil() |
Modifier and Type | Method and 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) |
public static Map<String,byte[]> findResources(ClassLoader classLoader, String paResourceRootPath, URL metaFileUrl)
classLoader
- the classloader to scanpaResourceRootPath
- see ProcessArchiveXml.PROP_RESOURCE_ROOT_PATH
metaFileUrl
- the URL to the META-INF/processes.xml filepublic static Map<String,byte[]> findResources(ClassLoader classLoader, String paResourceRootPath, URL metaFileUrl, String[] additionalResourceSuffixes)
classLoader
- the classloader to scanpaResourceRootPath
- see ProcessArchiveXml.PROP_RESOURCE_ROOT_PATH
metaFileUrl
- the URL to the META-INF/processes.xml fileadditionalResourceSuffixes
- a list of additional suffixes for resourcespublic static boolean isDeployable(String filename)
public static boolean isDeployable(String filename, String[] additionalResourceSuffixes)
protected static boolean checkDiagram(String fileName, String modelFileName, String[] diagramSuffixes, String[] modelSuffixes)
fileName
- filename to check.modelFileName
- model file name.diagramSuffixes
- suffixes of the diagram files.modelSuffixes
- suffixes of model files.Copyright © 2019. All rights reserved.