Class AbstractAutoDeploymentStrategy
- java.lang.Object
-
- org.activiti.spring.autodeployment.AbstractAutoDeploymentStrategy
-
- All Implemented Interfaces:
AutoDeploymentStrategy
- Direct Known Subclasses:
DefaultAutoDeploymentStrategy,FailOnNoProcessAutoDeploymentStrategy,NeverFailAutoDeploymentStrategy,ResourceParentFolderAutoDeploymentStrategy,SingleResourceAutoDeploymentStrategy
public abstract class AbstractAutoDeploymentStrategy extends java.lang.Object implements AutoDeploymentStrategy
Abstract base class for implementations ofAutoDeploymentStrategy.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.LoggerLOGGER
-
Constructor Summary
Constructors Constructor Description AbstractAutoDeploymentStrategy(org.activiti.core.common.spring.project.ProjectModelService projectModelService)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringdetermineResourceName(org.springframework.core.io.Resource resource)Determines the name to be used for the provided resource.protected abstract java.lang.StringgetDeploymentMode()Gets the deployment mode this strategy handles.booleanhandlesMode(java.lang.String mode)Determines whether the strategy handles deployments for the provided deployment mode.protected org.activiti.engine.repository.DeploymentBuilderloadProjectManifest(org.activiti.engine.repository.DeploymentBuilder deploymentBuilder)protected booleanvalidateModel(org.springframework.core.io.Resource resource, org.activiti.engine.RepositoryService repositoryService)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.activiti.spring.autodeployment.AutoDeploymentStrategy
deployResources
-
-
-
-
Method Detail
-
getDeploymentMode
protected abstract java.lang.String getDeploymentMode()
Gets the deployment mode this strategy handles.- Returns:
- the name of the deployment mode
-
handlesMode
public boolean handlesMode(java.lang.String mode)
Description copied from interface:AutoDeploymentStrategyDetermines whether the strategy handles deployments for the provided deployment mode.- Specified by:
handlesModein interfaceAutoDeploymentStrategy- Parameters:
mode- the mode to determine handling for- Returns:
- true if the strategy handles the mode; false otherwise
-
determineResourceName
protected java.lang.String determineResourceName(org.springframework.core.io.Resource resource)
Determines the name to be used for the provided resource.- Parameters:
resource- the resource to get the name for- Returns:
- the name of the resource
-
validateModel
protected boolean validateModel(org.springframework.core.io.Resource resource, org.activiti.engine.RepositoryService repositoryService)
-
loadProjectManifest
protected org.activiti.engine.repository.DeploymentBuilder loadProjectManifest(org.activiti.engine.repository.DeploymentBuilder deploymentBuilder)
-
-