com.xebialabs.deployit.mapper.artifact
Class ConfigurationFilesToHostMapper

java.lang.Object
  extended by com.xebialabs.deployit.mapper.Mapper<S,M,T>
      extended by com.xebialabs.deployit.mapper.StepGeneratingMapper<ConfigurationFiles,ConfigurationFilesMapping,Host>
          extended by com.xebialabs.deployit.mapper.artifact.ConfigurationFilesToHostMapper

public class ConfigurationFilesToHostMapper
extends StepGeneratingMapper<ConfigurationFiles,ConfigurationFilesMapping,Host>

Mapper that maps ConfigurationFiles CI's to hosts with ConfigurationFilesMapping CI's.


Field Summary
 
Fields inherited from class com.xebialabs.deployit.mapper.Mapper
addedMappings, change, deletedMappings, modifiedMappings, newMappings, oldMappings
 
Constructor Summary
ConfigurationFilesToHostMapper(Change<Deployment> c)
           
 
Method Summary
protected  void generateAdditionStepsForAddedMapping(ConfigurationFiles newSource, ConfigurationFilesMapping m, Host newTarget, 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 generateDeletionStepsForDeletedMapping(ConfigurationFiles oldSource, ConfigurationFilesMapping m, Host oldTarget, 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.
 
Methods inherited from class com.xebialabs.deployit.mapper.StepGeneratingMapper
generateAdditionSteps, generateAdditionStepsForModifiedMapping, generateDeletionSteps, generateDeletionStepsForModifiedMapping
 
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

ConfigurationFilesToHostMapper

public ConfigurationFilesToHostMapper(Change<Deployment> c)
Method Detail

generateAdditionStepsForAddedMapping

protected void generateAdditionStepsForAddedMapping(ConfigurationFiles newSource,
                                                    ConfigurationFilesMapping m,
                                                    Host newTarget,
                                                    java.util.List<Step> steps)
Description copied from class: StepGeneratingMapper
Must be implemented by a subclass to generate steps that add an artifact/a resource to the middleware when a mapping is added.

Specified by:
generateAdditionStepsForAddedMapping in class StepGeneratingMapper<ConfigurationFiles,ConfigurationFilesMapping,Host>
Parameters:
newSource - 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.
m - the new mapping
newTarget - 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

generateDeletionStepsForDeletedMapping

protected void generateDeletionStepsForDeletedMapping(ConfigurationFiles oldSource,
                                                      ConfigurationFilesMapping m,
                                                      Host oldTarget,
                                                      java.util.List<Step> steps)
Description copied from class: StepGeneratingMapper
Must be implemented by a subclass to generate steps that delete an artifact/a resource from the middleware when a mapping is deleted.

Specified by:
generateDeletionStepsForDeletedMapping in class StepGeneratingMapper<ConfigurationFiles,ConfigurationFilesMapping,Host>
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.
m - 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


Copyright © 2010. All Rights Reserved.