|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xebialabs.deployit.mapper.Mapper<S,M,T>
com.xebialabs.deployit.mapper.StepGeneratingMapper<S,M,T>
S - the type of the source artifact/resource.M - the type of the mapping.T - the type of the target middleware.public abstract class StepGeneratingMapper<S extends java.io.Serializable,M extends Mapping,T extends java.io.Serializable>
A mapper that can generate steps for added, modified and deleted steps.
| Field Summary |
|---|
| Fields inherited from class com.xebialabs.deployit.mapper.Mapper |
|---|
addedMappings, change, deletedMappings, modifiedMappings, newMappings, oldMappings |
| Constructor Summary | |
|---|---|
StepGeneratingMapper(Change<Deployment> change)
Creates a StepGeneratingMapper for the specified deployment change that will apply default mappings. |
|
StepGeneratingMapper(Change<Deployment> change,
boolean applyDefaultMappings)
Creates a StepGeneratingMapper for the specified deployment change. |
|
| Method Summary | |
|---|---|
void |
generateAdditionSteps(java.util.List<Step> steps)
Generates all the steps that will add artifacts/resources to the middleware. |
protected abstract void |
generateAdditionStepsForAddedMapping(S newMappingSource,
M newMapping,
T newMappingTarget,
java.util.List<Step> steps)
Must be implemented by a subclass to generate steps that add an artifact/a resource to the middleware when a mapping is added. |
protected void |
generateAdditionStepsForModifiedMapping(S newMappingSource,
M newVersionOfModifiedMapping,
T newMappingTarget,
java.util.List<Step> steps)
Can be overridden by a subclass to generate steps that add an artifact/a resource to the middleware when a mapping is modified. |
void |
generateDeletionSteps(java.util.List<Step> steps)
Generates all the steps that will delete artifacts/resources from the middleware. |
protected abstract void |
generateDeletionStepsForDeletedMapping(S oldMappingSource,
M oldVersionOfModifiedMapping,
T oldMappingTarget,
java.util.List<Step> steps)
Must be implemented by a subclass to generate steps that delete an artifact/a resource from the middleware when a mapping is deleted. |
protected void |
generateDeletionStepsForModifiedMapping(S oldMappingSource,
M oldVersionOfModifiedMapping,
T oldMappingTarget,
java.util.List<Step> steps)
Can be overridden by a subclass to generate steps that delete an artifact/a resource from the middleware when a mapping is modified. |
| Methods inherited from class com.xebialabs.deployit.mapper.Mapper |
|---|
getAddedMappings, getAffectedTargets, getAllTargets, getDeletedMappings, getModifiedMappings, getNewMappings, getNewTargets, getOldMappings, getOldTargets, init, setDefaults |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StepGeneratingMapper(Change<Deployment> change,
boolean applyDefaultMappings)
change - the deployment change for which to calculate mappings.applyDefaultMappings - default mappings will be applied iff truepublic StepGeneratingMapper(Change<Deployment> change)
change - the deployment change for which to calculate mappings.| Method Detail |
|---|
public final void generateAdditionSteps(java.util.List<Step> steps)
steps - the list of steps to which the generated steps are to be addedpublic final void generateDeletionSteps(java.util.List<Step> steps)
steps - the list of steps to which the generated steps are to be added
protected abstract void generateAdditionStepsForAddedMapping(S newMappingSource,
M newMapping,
T newMappingTarget,
java.util.List<Step> steps)
newMappingSource - the source of the new mapping. The value is identical to newMapping.getSource() but it is
provided separately so that the implementor of this method does not have to cast it.newMapping - the new mappingnewMappingTarget - the target of the new mapping. The value is identical to newMapping.getTarget() but it is
provided separately so that the implementor of this method does not have to cast it.steps - the list of steps to which the generated steps are to be added
protected void generateAdditionStepsForModifiedMapping(S newMappingSource,
M newVersionOfModifiedMapping,
T newMappingTarget,
java.util.List<Step> steps)
generateAdditionStepsForAddedMapping(Serializable, Mapping, Serializable, List).
newMappingSource - the new source of the mapping. The value is identical to
newVersionOfModifiedMapping.getSource() but it is provided separately so that the implementor
of this method does not have to cast it.newVersionOfModifiedMapping - the new mappingnewMappingTarget - the new target of the mapping. The value is identical to
newVersionOfModifiedMapping.getTarget() but it is provided separately so that the implementor
of this method does not have to cast it.steps - the list of steps to which the generated steps are to be added
protected void generateDeletionStepsForModifiedMapping(S oldMappingSource,
M oldVersionOfModifiedMapping,
T oldMappingTarget,
java.util.List<Step> steps)
generateDeletionStepsForModifiedMapping(Serializable, Mapping, Serializable, List).
oldMappingSource - the old source of the modified mapping. The value is identical to
oldVersionOfModifiedMapping.getSource() but it is provided separately so that the implementor
of this method does not have to cast it.oldVersionOfModifiedMapping - the old mappingoldMappingTarget - the old target of the modified mapping. The value is identical to
oldVersionOfModifiedMapping.getTarget() but it is provided separately so that the implementor
of this method does not have to cast it.steps - the list of steps to which the generated steps are to be added
protected abstract void generateDeletionStepsForDeletedMapping(S oldMappingSource,
M oldVersionOfModifiedMapping,
T oldMappingTarget,
java.util.List<Step> steps)
oldMappingSource - the source of the old mapping. The value is identical to oldMapping.getSource() but it is
provided separately so that the implementor of this method does not have to cast it.oldVersionOfModifiedMapping - the old mappingoldMappingTarget - the target of the old mapping. The value is identical to oldMapping.getTarget() but it is
provided separately so that the implementor of this method does not have to cast it.steps - the list of steps to which the generated steps are to be added
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||