com.caucho.config.inject
Class AbstractInjectionPoint

java.lang.Object
  extended by com.caucho.config.inject.AbstractInjectionPoint
All Implemented Interfaces:
InjectionPoint

public class AbstractInjectionPoint
extends java.lang.Object
implements InjectionPoint


Constructor Summary
AbstractInjectionPoint(InjectManager inject, Bean bean, java.lang.reflect.Member member, java.lang.reflect.Type type, java.util.Set<java.lang.annotation.Annotation> bindings, java.lang.annotation.Annotation[] annotations)
           
 
Method Summary
 Annotated getAnnotated()
          Returns all annotations on the injection point.
<T extends java.lang.annotation.Annotation>
T
getAnnotation(java.lang.Class<T> annotationType)
           
 java.lang.annotation.Annotation[] getAnnotations()
           
 Bean<?> getBean()
          Returns the owning bean for the injection point.
 java.lang.reflect.Member getMember()
          Returns the Field for field injection, the Method for method injection, and Constructor for constructor injection.
 java.util.Set<java.lang.annotation.Annotation> getQualifiers()
          Returns the declared qualifiers on the injection point.
 java.lang.reflect.Type getType()
          Returns the declared type of the injection point, e.g.
 boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annType)
           
 boolean isDelegate()
          A delegate injection point is true for Decorators
 boolean isTransient()
          Test if the injection point is a java transient
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractInjectionPoint

public AbstractInjectionPoint(InjectManager inject,
                              Bean bean,
                              java.lang.reflect.Member member,
                              java.lang.reflect.Type type,
                              java.util.Set<java.lang.annotation.Annotation> bindings,
                              java.lang.annotation.Annotation[] annotations)
Method Detail

getAnnotated

public Annotated getAnnotated()
Description copied from interface: InjectionPoint
Returns all annotations on the injection point.

Specified by:
getAnnotated in interface InjectionPoint

getQualifiers

public java.util.Set<java.lang.annotation.Annotation> getQualifiers()
Description copied from interface: InjectionPoint
Returns the declared qualifiers on the injection point.

Specified by:
getQualifiers in interface InjectionPoint

getType

public java.lang.reflect.Type getType()
Description copied from interface: InjectionPoint
Returns the declared type of the injection point, e.g. an injected field's type.

Specified by:
getType in interface InjectionPoint

getBean

public Bean<?> getBean()
Description copied from interface: InjectionPoint
Returns the owning bean for the injection point.

Specified by:
getBean in interface InjectionPoint

getMember

public java.lang.reflect.Member getMember()
Description copied from interface: InjectionPoint
Returns the Field for field injection, the Method for method injection, and Constructor for constructor injection.

Specified by:
getMember in interface InjectionPoint

getAnnotations

public java.lang.annotation.Annotation[] getAnnotations()

getAnnotation

public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationType)

isAnnotationPresent

public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annType)

isDelegate

public boolean isDelegate()
Description copied from interface: InjectionPoint
A delegate injection point is true for Decorators

Specified by:
isDelegate in interface InjectionPoint

isTransient

public boolean isTransient()
Description copied from interface: InjectionPoint
Test if the injection point is a java transient

Specified by:
isTransient in interface InjectionPoint

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object