org.camunda.bpm.container.impl.jmx.deployment.scanning
Class ProcessApplicationScanningUtil

java.lang.Object
  extended by org.camunda.bpm.container.impl.jmx.deployment.scanning.ProcessApplicationScanningUtil

public class ProcessApplicationScanningUtil
extends Object


Constructor Summary
ProcessApplicationScanningUtil()
           
 
Method Summary
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 isDiagramForProcess(String diagramFileName, String processFileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessApplicationScanningUtil

public ProcessApplicationScanningUtil()
Method Detail

findResources

public 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

findResources

public 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

public static boolean isDeployable(String filename)

isDeployable

public static boolean isDeployable(String filename,
                                   String[] additionalResourceSuffixes)

hasSuffix

public static boolean hasSuffix(String filename,
                                String[] suffixes)

isDiagramForProcess

public static boolean isDiagramForProcess(String diagramFileName,
                                          String processFileName)


Copyright © 2014 camunda services GmbH. All Rights Reserved.