jBPM distribution 6.2.0.CR4

org.jbpm.kie.services.api
Class DeploymentIdResolver

java.lang.Object
  extended by org.jbpm.kie.services.api.DeploymentIdResolver

public class DeploymentIdResolver
extends Object

Deployment id resolver that allows to find out latest version of given deployment id. To be able to find it deployment id needs to be done with valid group and artifact id and version must be set to latest (case insensitive):
org.jbpm:HR:latest
then available deployment units will be scanned and based on Maven version comparison latest will be returned.
Primary method to be used matchAndReturnLatest(java.lang.String, java.util.Collection)


Constructor Summary
DeploymentIdResolver()
           
 
Method Summary
static String findLatest(Collection<String> deploymentIds)
           
static String matchAndReturnLatest(String deploymentId, Collection<String> availableDeployments)
           
static Collection<String> matchDeployments(String deploymentId, Collection<String> availableDeployments)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymentIdResolver

public DeploymentIdResolver()
Method Detail

matchAndReturnLatest

public static String matchAndReturnLatest(String deploymentId,
                                          Collection<String> availableDeployments)

matchDeployments

public static Collection<String> matchDeployments(String deploymentId,
                                                  Collection<String> availableDeployments)

findLatest

public static String findLatest(Collection<String> deploymentIds)

jBPM distribution 6.2.0.CR4

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.