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
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 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.enterprise.inject.spi.AnnotatedgetAnnotated()javax.enterprise.inject.spi.Bean<?>getBean()MembergetMember()Set<Annotation>getQualifiers()TypegetType()booleanisDelegate()booleanisTransient()
-
-
-
Constructor Detail
-
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 Detail
-
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
public Member getMember()
- Specified by:
getMemberin interfacejavax.enterprise.inject.spi.InjectionPoint
-
getQualifiers
public Set<Annotation> getQualifiers()
- Specified by:
getQualifiersin interfacejavax.enterprise.inject.spi.InjectionPoint
-
getType
public Type 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
-
-