|
||||||||||
| 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>
S - the type of the source artifact/resource.M - the type of the mapping.T - the type of the target middleware.public abstract class Mapper<S extends java.io.Serializable,M extends Mapping,T extends java.io.Serializable>
Calculates which source artifact/resource is mapped to what middleware target.
| Field Summary | |
|---|---|
protected java.util.List<M> |
addedMappings
|
protected Change<Deployment> |
change
|
protected java.util.List<M> |
deletedMappings
|
protected java.util.List<Pair<M,M>> |
modifiedMappings
|
protected java.util.List<M> |
newMappings
|
protected java.util.List<M> |
oldMappings
|
| Constructor Summary | |
|---|---|
protected |
Mapper(Change<Deployment> change)
Creates a Mapper for the specified deployment change that will apply default mappings. |
protected |
Mapper(Change<Deployment> change,
boolean applyDefaultMappings)
Creates a Mapper for the specified deployment change. |
| Method Summary | |
|---|---|
java.util.List<M> |
getAddedMappings()
Returns the list of added mappings. |
java.util.Set<T> |
getAffectedTargets()
Gets the affected targets of all the mappings. |
java.util.Set<T> |
getAllTargets()
Gets all the targets of all the mappings, old and new. |
java.util.List<M> |
getDeletedMappings()
Returns the list of deleted mappings. |
java.util.List<Pair<M,M>> |
getModifiedMappings()
Returns the list of modified mappings. |
java.util.List<M> |
getNewMappings()
Returns the list of new mappings. |
java.util.Set<T> |
getNewTargets()
Gets all the targets of the new mappings. |
java.util.List<M> |
getOldMappings()
Returns the list of old mappings. |
java.util.Set<T> |
getOldTargets()
Gets all the targets of the old mappings. |
protected void |
init()
|
void |
setDefaults(Deployment deployment,
M newDefaultMapping)
Can be overridden by a subclass to set the defaults on a automatically generated default mapping. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Change<Deployment> change
protected java.util.List<M extends Mapping> oldMappings
protected java.util.List<M extends Mapping> newMappings
protected java.util.List<M extends Mapping> addedMappings
protected java.util.List<Pair<M extends Mapping,M extends Mapping>> modifiedMappings
protected java.util.List<M extends Mapping> deletedMappings
| Constructor Detail |
|---|
protected Mapper(Change<Deployment> change,
boolean applyDefaultMappings)
change - the deployment change for which to calculcate mappings.applyDefaultMappings - default mappings will be applied iff trueprotected Mapper(Change<Deployment> change)
change - the deployment change for which to calculcate mappings.| Method Detail |
|---|
protected void init()
public java.util.List<M> getOldMappings()
public java.util.List<M> getNewMappings()
public java.util.List<M> getAddedMappings()
public java.util.List<Pair<M,M>> getModifiedMappings()
similar but not
ConfigurationItemReflectionUtils.isIdentical(Serializable, Serializable) mapping existed in the old and
the new version.
pairs; the first element of the pair is
the old mapping and the second element of the pair is the new mapping.public java.util.List<M> getDeletedMappings()
public java.util.Set<T> getAllTargets()
public java.util.Set<T> getAffectedTargets()
public java.util.Set<T> getOldTargets()
public java.util.Set<T> getNewTargets()
public void setDefaults(Deployment deployment,
M newDefaultMapping)
deployment - the deployment for which this default mapping was creatednewDefaultMapping - the newly created default mapping
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||