com.xebialabs.deployit.mapper
Class ModificationSupportingMappingAgnosticStepGeneratingMapper<S extends java.io.Serializable,T extends java.io.Serializable>

java.lang.Object
  extended by com.xebialabs.deployit.mapper.Mapper<S,M,T>
      extended by com.xebialabs.deployit.mapper.StepGeneratingMapper<S,M,T>
          extended by com.xebialabs.deployit.mapper.ModificationSupportingStepGeneratingMapper<S,Mapping,T>
              extended by com.xebialabs.deployit.mapper.ModificationSupportingMappingAgnosticStepGeneratingMapper<S,T>
Type Parameters:
S - the type of the source artifact/resource.
T - the type of the target middleware.

public abstract class ModificationSupportingMappingAgnosticStepGeneratingMapper<S extends java.io.Serializable,T extends java.io.Serializable>
extends ModificationSupportingStepGeneratingMapper<S,Mapping,T>

A subclass of ModificationSupportingStepGeneratingMapper 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
ModificationSupportingMappingAgnosticStepGeneratingMapper(Change<Deployment> change)
          Creates a ModificationSupportingMappingAgnosticStepGeneratingMapper for the specified deployment change that will apply default mappings.
ModificationSupportingMappingAgnosticStepGeneratingMapper(Change<Deployment> change, boolean applyDefaultMappings)
          Creates a ModificationSupportingMappingAgnosticStepGeneratingMapper for the specified deployment change.
 
Method Summary
protected  void generateAdditionStepsForAddedMapping(S newMappingSource, Mapping newMapping, T newMappingTarget, java.util.List<Step> steps)
          Overrides StepGeneratingMapper.generateAdditionStepsForAddedMapping(Serializable, Mapping, Serializable, List) to invoke generateAdditionStepsForAddedMapping(Serializable, Serializable, List).
protected abstract  void generateAdditionStepsForAddedMapping(S newMappingSource, T newMappingTarget, java.util.List<Step> steps)
          Version of StepGeneratingMapper.generateAdditionStepsForAddedMapping(Serializable, Mapping, Serializable, List) that does without the newMapping parameter.
protected  void generateDeletionStepsForDeletedMapping(S oldSource, Mapping oldMapping, T oldTarget, java.util.List<Step> steps)
          Overrides StepGeneratingMapper.generateDeletionStepsForDeletedMapping(Serializable, Mapping, Serializable, List) to invoke generateDeletionStepsForDeletedMapping(Serializable, Serializable, List).
protected abstract  void generateDeletionStepsForDeletedMapping(S oldMappingSource, T oldMappingTarget, java.util.List<Step> steps)
          Version of StepGeneratingMapper.generateDeletionStepsForDeletedMapping(Serializable, Mapping, Serializable, List) that does without the newMapping parameter.
protected  void generateModificationStepsForModifiedMapping(S oldSource, Mapping oldVersionOfModifiedMapping, T oldTarget, S newSource, Mapping newVersionOfModifiedMapping, T newTarget, java.util.List<Step> steps)
          Overrides ModificationSupportingStepGeneratingMapper.generateModificationStepsForModifiedMapping(Serializable, Mapping, Serializable, Serializable, Mapping, Serializable, List) to invoke generateModificationStepsForModifiedMapping(Serializable, Serializable, Serializable, Serializable, List).
protected abstract  void generateModificationStepsForModifiedMapping(S oldMappingSource, T oldMappingTarget, S newMappingSource, T newMappingTarget, java.util.List<Step> steps)
          Version of StepGeneratingMapper.generateAdditionStepsForAddedMapping(Serializable, Mapping, Serializable, List) that does without the newMapping parameter.
 
Methods inherited from class com.xebialabs.deployit.mapper.ModificationSupportingStepGeneratingMapper
generateAdditionStepsForModifiedMapping, generateDeletionStepsForModifiedMapping, generateModificationSteps
 
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

ModificationSupportingMappingAgnosticStepGeneratingMapper

public ModificationSupportingMappingAgnosticStepGeneratingMapper(Change<Deployment> change,
                                                                 boolean applyDefaultMappings)
Creates a ModificationSupportingMappingAgnosticStepGeneratingMapper for the specified deployment change.

Parameters:
change - the deployment change for which to calculate mappings.
applyDefaultMappings - default mappings will be applied iff true

ModificationSupportingMappingAgnosticStepGeneratingMapper

public ModificationSupportingMappingAgnosticStepGeneratingMapper(Change<Deployment> change)
Creates a ModificationSupportingMappingAgnosticStepGeneratingMapper for the specified deployment change that will apply default mappings.

Parameters:
change - the deployment change for which to calculate mappings.
Method Detail

generateAdditionStepsForAddedMapping

protected final void generateAdditionStepsForAddedMapping(S newMappingSource,
                                                          Mapping newMapping,
                                                          T newMappingTarget,
                                                          java.util.List<Step> steps)
Overrides StepGeneratingMapper.generateAdditionStepsForAddedMapping(Serializable, Mapping, Serializable, List) to invoke generateAdditionStepsForAddedMapping(Serializable, Serializable, List).

Specified by:
generateAdditionStepsForAddedMapping in class StepGeneratingMapper<S extends java.io.Serializable,Mapping,T extends java.io.Serializable>
Parameters:
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 mapping
newMappingTarget - 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

generateAdditionStepsForAddedMapping

protected abstract void generateAdditionStepsForAddedMapping(S newMappingSource,
                                                             T newMappingTarget,
                                                             java.util.List<Step> steps)
Version of StepGeneratingMapper.generateAdditionStepsForAddedMapping(Serializable, Mapping, Serializable, List) that does without the newMapping parameter.

Parameters:
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

generateModificationStepsForModifiedMapping

protected final void generateModificationStepsForModifiedMapping(S oldSource,
                                                                 Mapping oldVersionOfModifiedMapping,
                                                                 T oldTarget,
                                                                 S newSource,
                                                                 Mapping newVersionOfModifiedMapping,
                                                                 T newTarget,
                                                                 java.util.List<Step> steps)
Overrides ModificationSupportingStepGeneratingMapper.generateModificationStepsForModifiedMapping(Serializable, Mapping, Serializable, Serializable, Mapping, Serializable, List) to invoke generateModificationStepsForModifiedMapping(Serializable, Serializable, Serializable, Serializable, List).

Overrides:
generateModificationStepsForModifiedMapping in class ModificationSupportingStepGeneratingMapper<S extends java.io.Serializable,Mapping,T extends java.io.Serializable>
Parameters:
oldSource - the old source of the modified 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 version of the modified mapping
oldTarget - 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.
newSource - 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 mapping
newTarget - 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

generateModificationStepsForModifiedMapping

protected abstract void generateModificationStepsForModifiedMapping(S oldMappingSource,
                                                                    T oldMappingTarget,
                                                                    S newMappingSource,
                                                                    T newMappingTarget,
                                                                    java.util.List<Step> steps)
Version of StepGeneratingMapper.generateAdditionStepsForAddedMapping(Serializable, Mapping, Serializable, List) that does without the newMapping parameter.

Parameters:
oldMappingSource - the old source of the modified mapping.
oldMappingTarget - the old target of the modified mapping.
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

generateDeletionStepsForDeletedMapping

protected final void generateDeletionStepsForDeletedMapping(S oldSource,
                                                            Mapping oldMapping,
                                                            T oldTarget,
                                                            java.util.List<Step> steps)
Overrides StepGeneratingMapper.generateDeletionStepsForDeletedMapping(Serializable, Mapping, Serializable, List) to invoke generateDeletionStepsForDeletedMapping(Serializable, Serializable, List).

Specified by:
generateDeletionStepsForDeletedMapping in class StepGeneratingMapper<S extends java.io.Serializable,Mapping,T extends java.io.Serializable>
Parameters:
oldSource - 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 mapping
oldTarget - 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

generateDeletionStepsForDeletedMapping

protected abstract void generateDeletionStepsForDeletedMapping(S oldMappingSource,
                                                               T oldMappingTarget,
                                                               java.util.List<Step> steps)
Version of StepGeneratingMapper.generateDeletionStepsForDeletedMapping(Serializable, Mapping, Serializable, List) that does without the newMapping parameter.

Parameters:
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


Copyright © 2010. All Rights Reserved.