public class InjectionPoint<T> extends Object
Modifier and Type | Field and Description |
---|---|
protected T |
annotation |
protected MetaConstructor |
constructor |
protected MetaField |
field |
protected InjectionContext |
injectionContext |
protected Injector |
injector |
protected MetaMethod |
method |
protected MetaParameter |
parm |
protected TaskType |
taskType |
protected MetaClass |
type |
Constructor and Description |
---|
InjectionPoint(T annotation,
TaskType taskType,
MetaConstructor constructor,
MetaMethod method,
MetaField field,
MetaClass type,
MetaParameter parm,
Injector injector,
InjectionContext injectionContext) |
Modifier and Type | Method and Description |
---|---|
void |
ensureMemberExposed() |
void |
ensureMemberExposed(PrivateAccessType accessType) |
T |
getAnnotation() |
<A extends Annotation> |
getAnnotation(Class<A> annotation) |
Annotation[] |
getAnnotations() |
MetaConstructor |
getConstructor() |
MetaClass |
getElementType() |
MetaClass |
getElementTypeOrMethodReturnType()
Returns the element type or a method return type, based on what the injection point is.
|
MetaClass |
getEnclosingType() |
MetaField |
getField() |
InjectionContext |
getInjectionContext() |
Injector |
getInjector()
Returns the
Injector reference for the the bean |
String |
getMemberName() |
MetaMethod |
getMethod() |
MetaParameter |
getParm()
Returns the parameter reference if the injection point is a parameter, otherwise returns null.
|
Annotation[] |
getQualifiers() |
QualifyingMetadata |
getQualifyingMetadata() |
Annotation |
getRawAnnotation() |
TaskType |
getTaskType() |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotation) |
boolean |
isProxy() |
protected T annotation
protected TaskType taskType
protected MetaConstructor constructor
protected MetaMethod method
protected MetaField field
protected MetaClass type
protected MetaParameter parm
protected Injector injector
protected InjectionContext injectionContext
public InjectionPoint(T annotation, TaskType taskType, MetaConstructor constructor, MetaMethod method, MetaField field, MetaClass type, MetaParameter parm, Injector injector, InjectionContext injectionContext)
public T getAnnotation()
public Annotation getRawAnnotation()
public MetaConstructor getConstructor()
public TaskType getTaskType()
public MetaMethod getMethod()
public MetaField getField()
public MetaClass getElementTypeOrMethodReturnType()
public class MyClass {
public void MyClass(@A Set set) {
}
public void setMethod(Foo foo, @B Bar t) {
}
}
If the element being decorated is the parameter where @A represents the injection/decorator point,
then the type returned by this method will be Set. If the element being decorated is the parameter
where @B represents the injection point, then the type returned by this method will be Bar.
Fields:
public class MyClass {
@A private Map myField;
}
If the element being decorated is the field where @A represents the injection/decorator point,
then the type returned by this method wil be Map.
Methods:
public class MyClass {
@A private List getList() {
}
@B private void doSomething() {
}
}
If the element being decorated is the method where @A represents the injection/decorator point,
then the type returned by this method will be List. If the element being decorated is the method
where @B represents the injection/decorator point, then the type returned by this method will be
void.
Constructor and Types:
@A
public class MyClass {
@B
public MyClass() {
}
}
If the class element being decorated is the method where @A represents the injection/decorator point,
then the type returned by this method will be MyClass. Also, if the constructor element being
decorated is the constructor where @B represents the injection/decorator point, then the type
returned by this method will be MyClass.public MetaClass getElementType()
public MetaParameter getParm()
MetaParameter
reference if the injection point is a parameter, otherwise null.public InjectionContext getInjectionContext()
public void ensureMemberExposed()
public void ensureMemberExposed(PrivateAccessType accessType)
public String getMemberName()
public MetaClass getEnclosingType()
public Annotation[] getQualifiers()
public QualifyingMetadata getQualifyingMetadata()
public boolean isProxy()
public boolean isAnnotationPresent(Class<? extends Annotation> annotation)
public <A extends Annotation> A getAnnotation(Class<A> annotation)
public Annotation[] getAnnotations()
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.