|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.hk2.utilities.InjecteeImpl
public class InjecteeImpl
This is a writeable version of the Injectee interface. Using this implementation may make your code more portable, as new methods added to the interface will be reflected in this class.
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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. |
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)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InjecteeImpl()
public InjecteeImpl(Injectee copyMe)
copyMe - The non-null Injectee to copy the values from| Method Detail |
|---|
public Type getRequiredType()
Injectee
getRequiredType in interface Injecteepublic void setRequiredType(Type requiredType)
requiredType - The required type of this injecteepublic Set<Annotation> getRequiredQualifiers()
Injectee
getRequiredQualifiers in interface Injecteepublic void setRequiredQualifiers(Set<Annotation> requiredQualifiers)
requiredQualifiers - The non-null set of required qualifierspublic int getPosition()
Injectee
getPosition in interface Injecteepublic void setPosition(int position)
position - The index position of the parameter, or -1 if descrbing a fieldpublic Class<?> getInjecteeClass()
Injectee
getInjecteeClass in interface Injecteepublic AnnotatedElement getParent()
Injectee
getParent in interface Injecteepublic void setParent(AnnotatedElement parent)
parent - The parent (Field, Constructor or Method) which is
the parent of this Injecteepublic boolean isOptional()
Injectee
isOptional in interface Injecteepublic void setOptional(boolean optional)
optional - true if this injectee is optional, false if requiredpublic boolean isSelf()
InjecteeActiveDescriptor, isOptional must be
false and the set of required qualifiers must be empty
isSelf in interface Injecteepublic void setSelf(boolean self)
self - true if this is a self-referencing Injectee, and false otherwisepublic Unqualified getUnqualified()
InjecteeUnqualified 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 InjecteeUnqualified annotation on the injection point, or null
if there is no Unqualified annotation on the injection pointpublic void setUnqualified(Unqualified unqualified)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||