|
||||||||||
| 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,Mapping,T>
com.xebialabs.deployit.mapper.MappingAgnosticStepGeneratingMapper<S,T>
S - the type of the source artifact/resource.T - the type of the target middleware.public abstract class MappingAgnosticStepGeneratingMapper<S extends java.io.Serializable,T extends java.io.Serializable>
A subclass of StepGeneratingMapper that provides the same functionality but does not pass the mapping object
to the template methods.
| Field Summary |
|---|
| Fields inherited from class com.xebialabs.deployit.mapper.Mapper |
|---|
addedMappings, change, deletedMappings, modifiedMappings, newMappings, oldMappings |
| Constructor Summary | |
|---|---|
MappingAgnosticStepGeneratingMapper(Change<Deployment> change)
Creates a MappingAgnosticStepGeneratingMapper for the specified deployment change that will apply default mappings. |
|
MappingAgnosticStepGeneratingMapper(Change<Deployment> change,
boolean applyDefaultMappings)
Creates a MappingAgnosticStepGeneratingMapper for the specified deployment change. |
|
| Methods inherited from class com.xebialabs.deployit.mapper.StepGeneratingMapper |
|---|
generateAdditionSteps, generateDeletionSteps |
| 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 MappingAgnosticStepGeneratingMapper(Change<Deployment> change,
boolean applyDefaultMappings)
change - the deployment change for which to calculate mappings.applyDefaultMappings - default mappings will be applied iff truepublic MappingAgnosticStepGeneratingMapper(Change<Deployment> change)
change - the deployment change for which to calculate mappings.| Method Detail |
|---|
protected final void generateAdditionStepsForAddedMapping(S newMappingSource,
Mapping newMapping,
T newMappingTarget,
java.util.List<Step> steps)
StepGeneratingMapper.generateAdditionStepsForAddedMapping(Serializable, Mapping, Serializable, List) to
invoke generateAdditionStepsForAddedMapping(Serializable, Serializable, List).
generateAdditionStepsForAddedMapping in class StepGeneratingMapper<S extends java.io.Serializable,Mapping,T extends java.io.Serializable>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 abstract void generateAdditionStepsForAddedMapping(S newMappingSource,
T newMappingTarget,
java.util.List<Step> steps)
StepGeneratingMapper.generateAdditionStepsForAddedMapping(Serializable, Mapping, Serializable, List) that
does without the newMapping parameter.
newMappingSource - the source of the new mapping.newMappingTarget - the target of the new mapping.steps - the list of steps to which the generated steps are to be added
protected final void generateAdditionStepsForModifiedMapping(S newMappingSource,
Mapping newMapping,
T newMappingTarget,
java.util.List<Step> steps)
StepGeneratingMapper.generateAdditionStepsForModifiedMapping(Serializable, Mapping, Serializable, List)
to invoke generateAdditionStepsForModifiedMapping(Serializable, Serializable, List).
generateAdditionStepsForModifiedMapping in class StepGeneratingMapper<S extends java.io.Serializable,Mapping,T extends java.io.Serializable>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.newMapping - 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 generateAdditionStepsForModifiedMapping(S newMappingSource,
T newMappingTarget,
java.util.List<Step> steps)
StepGeneratingMapper.generateAdditionStepsForModifiedMapping(Serializable, Mapping, Serializable, List)
that does without the newMapping parameter. The default implementation invokes
generateAdditionStepsForAddedMapping(Serializable, Serializable, List).
newMappingSource - the new source of the modified mapping.newMappingTarget - the new target of the modified mapping.steps - the list of steps to which the generated steps are to be added
protected final void generateDeletionStepsForModifiedMapping(S newMappingSource,
Mapping newMapping,
T newMappingTarget,
java.util.List<Step> steps)
StepGeneratingMapper.generateDeletionStepsForModifiedMapping(Serializable, Mapping, Serializable, List)
to invoke generateDeletionStepsForModifiedMapping(Serializable, Serializable, List).
generateDeletionStepsForModifiedMapping in class StepGeneratingMapper<S extends java.io.Serializable,Mapping,T extends java.io.Serializable>newMappingSource - 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.newMapping - the old mappingnewMappingTarget - 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 void generateDeletionStepsForModifiedMapping(S oldMappingSource,
T oldMappingTarget,
java.util.List<Step> steps)
StepGeneratingMapper.generateDeletionStepsForModifiedMapping(Serializable, Mapping, Serializable, List)
that does without the oldMapping parameter. The default implementation invokes
generateDeletionStepsForDeletedMapping(Serializable, Serializable, List).
oldMappingSource - the source of the new mapping.oldMappingTarget - the target of the new mapping.steps - the list of steps to which the generated steps are to be added
protected final void generateDeletionStepsForDeletedMapping(S oldMappingSource,
Mapping oldMapping,
T oldMappingTarget,
java.util.List<Step> steps)
StepGeneratingMapper.generateDeletionStepsForDeletedMapping(Serializable, Mapping, Serializable, List) to
invoke generateDeletionStepsForDeletedMapping(Serializable, Serializable, List).
generateDeletionStepsForDeletedMapping in class StepGeneratingMapper<S extends java.io.Serializable,Mapping,T extends java.io.Serializable>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.oldMapping - 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
protected abstract void generateDeletionStepsForDeletedMapping(S oldMappingSource,
T oldMappingTarget,
java.util.List<Step> steps)
StepGeneratingMapper.generateDeletionStepsForDeletedMapping(Serializable, Mapping, Serializable, List)
that does without the oldMapping parameter.
oldMappingSource - the source of the old mapping.oldMappingTarget - the target of the old mapping.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 | |||||||||