Package org.infinispan.cdi.common.util
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
ConstructorsConstructorDescriptionImmutableInjectionPoint(javax.enterprise.inject.spi.AnnotatedField<?> field, Set<Annotation> qualifiers, javax.enterprise.inject.spi.Bean<?> declaringBean, boolean _transient, boolean delegate) Instantiate a newInjectionPointbased upon anAnnotatedField.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 newInjectionPointbased upon anAnnotatedField, 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 newInjectionPointbased upon anAnnotatedParameter.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 newInjectionPointbased upon anAnnotatedParameter, reading the qualifiers from the annotations declared on the parameter. -
Method Summary
-
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 newInjectionPointbased upon anAnnotatedField.- Parameters:
field- the field for which to create the injection pointqualifiers- the qualifiers on the injection pointdeclaringBean- the declaringBean declaring the injection point_transient-trueif the injection point is transientdelegate-trueif 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 newInjectionPointbased upon anAnnotatedField, reading the qualifiers from the annotations declared on the field.- Parameters:
field- the field for which to create the injection pointdeclaringBean- the declaringBean declaring the injection point_transient-trueif the injection point is transientdelegate-trueif 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 newInjectionPointbased upon anAnnotatedParameter.- Parameters:
parameter- the parameter for which to create the injection pointqualifiers- the qualifiers on the injection pointdeclaringBean- the declaringBean declaring the injection point_transient-trueif the injection point is transientdelegate-trueif 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 newInjectionPointbased upon anAnnotatedParameter, reading the qualifiers from the annotations declared on the parameter.- Parameters:
parameter- the parameter for which to create the injection pointdeclaringBean- the declaringBean declaring the injection point_transient-trueif the injection point is transientdelegate-trueif the injection point is a delegate injection point on a decorator
-
-
Method Details
-
getAnnotated
public javax.enterprise.inject.spi.Annotated getAnnotated()- Specified by:
getAnnotatedin interfacejavax.enterprise.inject.spi.InjectionPoint
-
getBean
public javax.enterprise.inject.spi.Bean<?> getBean()- Specified by:
getBeanin interfacejavax.enterprise.inject.spi.InjectionPoint
-
getMember
- Specified by:
getMemberin interfacejavax.enterprise.inject.spi.InjectionPoint
-
getQualifiers
- Specified by:
getQualifiersin interfacejavax.enterprise.inject.spi.InjectionPoint
-
getType
- Specified by:
getTypein interfacejavax.enterprise.inject.spi.InjectionPoint
-
isDelegate
public boolean isDelegate()- Specified by:
isDelegatein interfacejavax.enterprise.inject.spi.InjectionPoint
-
isTransient
public boolean isTransient()- Specified by:
isTransientin interfacejavax.enterprise.inject.spi.InjectionPoint
-