Package com.xebialabs.deployit.mapper

The mapper framework; a way to modularize runbooks.

See:
          Description

Class Summary
Mapper<S extends Serializable,M extends Mapping,T extends Serializable> Calculates which source artifact/resource is mapped to what middleware target.
MappingAgnosticStepGeneratingMapper<S extends Serializable,T extends Serializable> A subclass of StepGeneratingMapper that provides the same functionality but does not pass the mapping object to the template methods.
ModificationSupportingMappingAgnosticStepGeneratingMapper<S extends Serializable,T extends Serializable> A subclass of ModificationSupportingStepGeneratingMapper that provides the same functionality but does not pass the mapping object to the template methods.
ModificationSupportingStepGeneratingMapper<S extends Serializable,M extends Mapping,T extends Serializable> Subclass of StepGeneratingMapper that can also generate modification steps for modified mappings.
Pair<X,Y> A pair of objects.
StepGeneratingMapper<S extends Serializable,M extends Mapping,T extends Serializable> A mapper that can generate steps for added, modified and deleted steps.
 

Package com.xebialabs.deployit.mapper Description

The mapper framework; a way to modularize runbooks. The mapper framework helps runbooks to generate mappings based on the mappings available in the Deployment CI. In short to get/create mappings, first define your own mapper like;

 public class MyMapper extends Mapper<Ear, MyMapping, Server> {
      public MyMapper(Change<Deployment> change) {
         super(change);
      }
 }
 
This will create a mapper where you can ask it for added, modified or deleted mappings.
This is useful when trying to figure out where each DeployableArtifact should be deployed to. It also retrieves from the Deployment-change any mappings of a specific type (in the example above of type MyMapping) that a user added to the deployment, overrides properties and detects if mappings are similar or identical.

Runbook code

To create a mapper in the runbook and get its mappings;
 MyMapper mapper = new MyMapper(change);
 List<MyMapping> addedMappings = mapper.getAddedMappings();
 List<MyMapping> modifiedMappings = mapper.getModifiedMappings();
 List<MyMapping> deletedMappings = mapper.getDeletedMappings();
 

Version:
1.2


Copyright © 2010. All Rights Reserved.