@Retention(value=RUNTIME) @Target(value={FIELD,PARAMETER}) @InjectionPointIndicator public @interface ChildInject
If the injection point of this annotation is of type
ChildIterable
then the generic type of the
ChildIterable
must contain the Type
of the underlying service, and the ChildIterable
will 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 ChildIterable
then
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
Modifier and Type | Optional Element and Description |
---|---|
String |
separator
This field returns the separator that is used to
separate heirarchical name fields, for use by the
ChildIterable.byKey(String) method. |
String |
value
The string that will be appended to the
name field of the ActiveDescriptor of
the parent of this injection point
|
public abstract String value
public abstract String separator
ChildIterable.byKey(String)
method. This
value will be pre-pended to the name given to the
ChildIterable.byKey(String)
key parameterCopyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.