public interface Injectee
Modifier and Type | Method and Description |
---|---|
Class<?> |
getInjecteeClass()
Returns the parent class for this injectee.
|
AnnotatedElement |
getParent()
If this Injectee is in a constructor this will return the
constructor being injected into.
|
int |
getPosition()
If this Injectee is a constructor or method parameter, this will
return the index of the parameter.
|
Set<Annotation> |
getRequiredQualifiers()
This is the set of required qualifiers for this injectee.
|
Type |
getRequiredType()
This is the required type of the injectee.
|
Unqualified |
getUnqualified()
This method returns the
Unqualified annotation if it is present
on the injection point. |
boolean |
isOptional()
This method returns true if this injection point is annotated
with VOptional.
|
boolean |
isSelf()
This method returns true if this injection point is annotated
with VSelf.
|
Type getRequiredType()
Set<Annotation> getRequiredQualifiers()
int getPosition()
Class<?> getInjecteeClass()
ServiceLocator.getInjecteeDescriptor(Injectee)
.AnnotatedElement getParent()
ServiceLocator.getInjecteeDescriptor(Injectee)
)
in which case this will return null.boolean isOptional()
boolean isSelf()
ActiveDescriptor
, isOptional must be
false and the set of required qualifiers must be emptyUnqualified getUnqualified()
Unqualified
annotation if it is present
on the injection point. This can be used to determine what qualifiers
should NOT be given to the injection point.Unqualified
annotation on the injection point, or null
if there is no Unqualified
annotation on the injection pointCopyright © 2014 Oracle Corporation. All rights reserved.