|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
See:
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;
This will create a mapper where you can ask it for added, modified or deleted mappings.
public class MyMapper extends Mapper<Ear, MyMapping, Server> {
public MyMapper(Change<Deployment> change) {
super(change);
}
}
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.
MyMapper mapper = new MyMapper(change);
List<MyMapping> addedMappings = mapper.getAddedMappings();
List<MyMapping> modifiedMappings = mapper.getModifiedMappings();
List<MyMapping> deletedMappings = mapper.getDeletedMappings();
|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||