Class ImmutableInjectionPoint

java.lang.Object
org.infinispan.cdi.common.util.ImmutableInjectionPoint
All Implemented Interfaces:
javax.enterprise.inject.spi.InjectionPoint

public class ImmutableInjectionPoint extends Object implements javax.enterprise.inject.spi.InjectionPoint

A base class for implementing InjectionPoint. The attributes are immutable, and collections are defensively copied on instantiation.

Author:
Stuart Douglas, Pete Muir
  • Constructor Summary

    Constructors
    Constructor
    Description
    ImmutableInjectionPoint(javax.enterprise.inject.spi.AnnotatedField<?> field, Set<Annotation> qualifiers, javax.enterprise.inject.spi.Bean<?> declaringBean, boolean _transient, boolean delegate)
    Instantiate a new InjectionPoint based upon an AnnotatedField.
    ImmutableInjectionPoint(javax.enterprise.inject.spi.AnnotatedField<?> field, javax.enterprise.inject.spi.BeanManager beanManager, javax.enterprise.inject.spi.Bean<?> declaringBean, boolean _transient, boolean delegate)
    Instantiate a new InjectionPoint based upon an AnnotatedField, reading the qualifiers from the annotations declared on the field.
    ImmutableInjectionPoint(javax.enterprise.inject.spi.AnnotatedParameter<?> parameter, Set<Annotation> qualifiers, javax.enterprise.inject.spi.Bean<?> declaringBean, boolean _transient, boolean delegate)
    Instantiate a new InjectionPoint based upon an AnnotatedParameter.
    ImmutableInjectionPoint(javax.enterprise.inject.spi.AnnotatedParameter<?> parameter, javax.enterprise.inject.spi.BeanManager beanManager, javax.enterprise.inject.spi.Bean<?> declaringBean, boolean _transient, boolean delegate)
    Instantiate a new InjectionPoint based upon an AnnotatedParameter, reading the qualifiers from the annotations declared on the parameter.
  • Method Summary

    Modifier and Type
    Method
    Description
    javax.enterprise.inject.spi.Annotated
     
    javax.enterprise.inject.spi.Bean<?>
     
     
     
     
    boolean
     
    boolean
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ImmutableInjectionPoint

      public ImmutableInjectionPoint(javax.enterprise.inject.spi.AnnotatedField<?> field, Set<Annotation> qualifiers, javax.enterprise.inject.spi.Bean<?> declaringBean, boolean _transient, boolean delegate)
      Instantiate a new InjectionPoint based upon an AnnotatedField.
      Parameters:
      field - the field for which to create the injection point
      qualifiers - the qualifiers on the injection point
      declaringBean - the declaringBean declaring the injection point
      _transient - true if the injection point is transient
      delegate - true if the injection point is a delegate injection point on a decorator
    • ImmutableInjectionPoint

      public ImmutableInjectionPoint(javax.enterprise.inject.spi.AnnotatedField<?> field, javax.enterprise.inject.spi.BeanManager beanManager, javax.enterprise.inject.spi.Bean<?> declaringBean, boolean _transient, boolean delegate)
      Instantiate a new InjectionPoint based upon an AnnotatedField, reading the qualifiers from the annotations declared on the field.
      Parameters:
      field - the field for which to create the injection point
      declaringBean - the declaringBean declaring the injection point
      _transient - true if the injection point is transient
      delegate - true if the injection point is a delegate injection point on a decorator
    • ImmutableInjectionPoint

      public ImmutableInjectionPoint(javax.enterprise.inject.spi.AnnotatedParameter<?> parameter, Set<Annotation> qualifiers, javax.enterprise.inject.spi.Bean<?> declaringBean, boolean _transient, boolean delegate)
      Instantiate a new InjectionPoint based upon an AnnotatedParameter.
      Parameters:
      parameter - the parameter for which to create the injection point
      qualifiers - the qualifiers on the injection point
      declaringBean - the declaringBean declaring the injection point
      _transient - true if the injection point is transient
      delegate - true if the injection point is a delegate injection point on a decorator
    • ImmutableInjectionPoint

      public ImmutableInjectionPoint(javax.enterprise.inject.spi.AnnotatedParameter<?> parameter, javax.enterprise.inject.spi.BeanManager beanManager, javax.enterprise.inject.spi.Bean<?> declaringBean, boolean _transient, boolean delegate)
      Instantiate a new InjectionPoint based upon an AnnotatedParameter, reading the qualifiers from the annotations declared on the parameter.
      Parameters:
      parameter - the parameter for which to create the injection point
      declaringBean - the declaringBean declaring the injection point
      _transient - true if the injection point is transient
      delegate - true if the injection point is a delegate injection point on a decorator
  • Method Details

    • getAnnotated

      public javax.enterprise.inject.spi.Annotated getAnnotated()
      Specified by:
      getAnnotated in interface javax.enterprise.inject.spi.InjectionPoint
    • getBean

      public javax.enterprise.inject.spi.Bean<?> getBean()
      Specified by:
      getBean in interface javax.enterprise.inject.spi.InjectionPoint
    • getMember

      public Member getMember()
      Specified by:
      getMember in interface javax.enterprise.inject.spi.InjectionPoint
    • getQualifiers

      public Set<Annotation> getQualifiers()
      Specified by:
      getQualifiers in interface javax.enterprise.inject.spi.InjectionPoint
    • getType

      public Type getType()
      Specified by:
      getType in interface javax.enterprise.inject.spi.InjectionPoint
    • isDelegate

      public boolean isDelegate()
      Specified by:
      isDelegate in interface javax.enterprise.inject.spi.InjectionPoint
    • isTransient

      public boolean isTransient()
      Specified by:
      isTransient in interface javax.enterprise.inject.spi.InjectionPoint