Constructor and Description |
---|
InjecteeImpl()
None of the fields of the returned object will be set
|
InjecteeImpl(Injectee copyMe)
This is the copy constructor, which will copy all the values from the incoming Injectee
|
InjecteeImpl(Type requiredType)
Only the requiredType field will be set
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
getInjecteeClass()
Returns the parent class for this injectee.
|
ActiveDescriptor<?> |
getInjecteeDescriptor()
This returns the ActiveDescriptor of the injectee
if it is known
|
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.
|
void |
setInjecteeDescriptor(ActiveDescriptor<?> injecteeDescriptor)
Sets the descriptor to be associated with this injectee
|
void |
setOptional(boolean optional)
Sets whether or not this Injectee should be considered optional
|
void |
setParent(AnnotatedElement parent)
This setter sets both the parent and the injecteeClass fields.
|
void |
setPosition(int position)
Sets the position of this Injectee.
|
void |
setRequiredQualifiers(Set<Annotation> requiredQualifiers)
Sets the required qualifiers for this Injectee
|
void |
setRequiredType(Type requiredType)
Sets the required type of this Injectee
|
void |
setSelf(boolean self)
Sets whether or not this is a self-referencing injectee
|
void |
setUnqualified(Unqualified unqualified)
Sets the unqualified annotation to be associated with this injectee
|
String |
toString() |
public InjecteeImpl()
public InjecteeImpl(Type requiredType)
requiredType
- The possibly null required typepublic InjecteeImpl(Injectee copyMe)
copyMe
- The non-null Injectee to copy the values frompublic Type getRequiredType()
Injectee
getRequiredType
in interface Injectee
public void setRequiredType(Type requiredType)
requiredType
- The required type of this injecteepublic Set<Annotation> getRequiredQualifiers()
Injectee
getRequiredQualifiers
in interface Injectee
public void setRequiredQualifiers(Set<Annotation> requiredQualifiers)
requiredQualifiers
- The non-null set of required qualifierspublic int getPosition()
Injectee
getPosition
in interface Injectee
public void setPosition(int position)
position
- The index position of the parameter, or -1 if descrbing a fieldpublic Class<?> getInjecteeClass()
Injectee
getInjecteeClass
in interface Injectee
public AnnotatedElement getParent()
Injectee
public void setParent(AnnotatedElement parent)
parent
- The parent (Field, Constructor or Method) which is
the parent of this Injecteepublic boolean isOptional()
Injectee
isOptional
in interface Injectee
public void setOptional(boolean optional)
optional
- true if this injectee is optional, false if requiredpublic boolean isSelf()
Injectee
ActiveDescriptor
, isOptional must be
false and the set of required qualifiers must be emptypublic void setSelf(boolean self)
self
- true if this is a self-referencing Injectee, and false otherwisepublic Unqualified getUnqualified()
Injectee
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.getUnqualified
in interface Injectee
Unqualified
annotation on the injection point, or null
if there is no Unqualified
annotation on the injection pointpublic void setUnqualified(Unqualified unqualified)
unqualified
- The unqualified annotation to be associated with this injecteepublic ActiveDescriptor<?> getInjecteeDescriptor()
Injectee
getInjecteeDescriptor
in interface Injectee
public void setInjecteeDescriptor(ActiveDescriptor<?> injecteeDescriptor)
injecteeDescriptor
- The injectee to be associated with this injecteeCopyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.