|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PreservationAndIgnorationDeclarer
A PreservationAndIgnorationDeclarer allows to specify excluded types and pathes, as well as preserved types and paths.
Additionally deepness levels can be specified to alter the traversal based on the deepness of instances.
Preservation in this context means that an source instance is kept as it is and being injected as it is into the target
instance.
Ignoring means to exclude an instance from being injected into the target at all.
| Method Summary | |
|---|---|
void |
addAllIgnoredTypes(Iterable<? extends Class<?>> typeIterable)
Similar to addIgnoredType(Class) |
void |
addAllPreservedTypes(Iterable<? extends Class<?>> typeIterable)
Similar to addPreservedType(Class) |
void |
addIgnoredPath(String path)
Adds a path to be ignored by the traversal when encountered. |
void |
addIgnoredType(Class<?> type)
Adds a type to be ignored by the traversal at all. |
void |
addPreservedPath(String path)
Adds a path for which the source instance will be injected into the target itself and no clone of it |
void |
addPreservedType(Class<?> type)
Adds types of instances where no clone is made and which are injected directly into the target |
void |
setIgnoredDeepnessLevel(int deepnessLevel)
Sets the deepness level, beginning from the traversal stops and no instances are set to the target instance Levels are related to the number of tokens of the path. |
void |
setPreservedDeepnessLevel(int deepnessLevel)
Sets the deepness level, beginning from all instances are preserved as they are and no clone operation is executed on them Levels are related to the number of tokens of the path. |
| Method Detail |
|---|
void addAllPreservedTypes(Iterable<? extends Class<?>> typeIterable)
addPreservedType(Class)
typeIterable - addPreservedType(Class)void addPreservedType(Class<?> type)
type - addIgnoredType(Class),
addPreservedPath(String),
addAllPreservedTypes(Iterable)void addPreservedPath(String path)
path - addPreservedType(Class),
addIgnoredPath(String)void setPreservedDeepnessLevel(int deepnessLevel)
deepnessLevel - addPreservedType(Class),
addPreservedPath(String),
setIgnoredDeepnessLevel(int)void setIgnoredDeepnessLevel(int deepnessLevel)
deepnessLevel - addIgnoredType(Class),
setPreservedDeepnessLevel(int)void addAllIgnoredTypes(Iterable<? extends Class<?>> typeIterable)
addIgnoredType(Class)
typeIterable - void addIgnoredType(Class<?> type)
type - addPreservedType(Class),
addAllIgnoredTypes(Iterable)void addIgnoredPath(String path)
path - addPreservedPath(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||