Annotation Type ChildInject
-
@Retention(RUNTIME) @Target({FIELD,PARAMETER}) @InjectionPointIndicator public @interface ChildInjectThis Injection point indicator can be used for services that have a hierarchical names. The name space of the name fields of the ActiveDescriptors must form a directed acyclical graph. For example, this is useful if using a naming scheme based on an XML hierarchy.If the injection point of this annotation is of type
ChildIterablethen the generic type of theChildIterablemust contain the Type of the underlying service, and theChildIterablewill contain all of the children services whose name starts with the name of the parent ActiveDescriptor appended with the value field of this annotation.If the injection point is NOT a
ChildIterablethen the type is as per a normal injection point, but the chosen instance of that type will have a name that starts with the name of the parent ActiveDescriptor appended with the value field of this annotation
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringseparatorThis field returns the separator that is used to separate heirarchical name fields, for use by theChildIterable.byKey(String)method.java.lang.StringvalueThe string that will be appended to the name field of the ActiveDescriptor of the parent of this injection point
-
-
-
-
separator
java.lang.String separator
This field returns the separator that is used to separate heirarchical name fields, for use by theChildIterable.byKey(String)method. This value will be pre-pended to the name given to theChildIterable.byKey(String)key parameter- Returns:
- The separator used to separate a hierachical namespace
- Default:
- "."
-
-