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.
Constructor and Description |
---|
ImmutableInjectionPoint(javax.enterprise.inject.spi.AnnotatedField<?> field,
javax.enterprise.inject.spi.BeanManager beanManager,
javax.enterprise.inject.spi.Bean<?> declaringBean,
boolean isTransient,
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.AnnotatedField<?> field,
Set<java.lang.annotation.Annotation> qualifiers,
javax.enterprise.inject.spi.Bean<?> declaringBean,
boolean isTransient,
boolean delegate)
Instantiate a new
InjectionPoint based upon an
AnnotatedField . |
ImmutableInjectionPoint(javax.enterprise.inject.spi.AnnotatedParameter<?> parameter,
javax.enterprise.inject.spi.BeanManager beanManager,
javax.enterprise.inject.spi.Bean<?> declaringBean,
boolean isTransient,
boolean delegate)
Instantiate a new
InjectionPoint based upon an
AnnotatedParameter , reading the qualifiers from the annotations
declared on the parameter. |
ImmutableInjectionPoint(javax.enterprise.inject.spi.AnnotatedParameter<?> parameter,
Set<java.lang.annotation.Annotation> qualifiers,
javax.enterprise.inject.spi.Bean<?> declaringBean,
boolean isTransient,
boolean delegate)
Instantiate a new
InjectionPoint based upon an
AnnotatedParameter . |
Modifier and Type | Method and Description |
---|---|
javax.enterprise.inject.spi.Annotated |
getAnnotated() |
javax.enterprise.inject.spi.Bean<?> |
getBean() |
Member |
getMember() |
Set<java.lang.annotation.Annotation> |
getQualifiers() |
Type |
getType() |
boolean |
isDelegate() |
boolean |
isTransient() |
public ImmutableInjectionPoint(javax.enterprise.inject.spi.AnnotatedField<?> field, Set<java.lang.annotation.Annotation> qualifiers, javax.enterprise.inject.spi.Bean<?> declaringBean, boolean isTransient, boolean delegate)
InjectionPoint
based upon an
AnnotatedField
.field
- the field for which to create the injection pointqualifiers
- the qualifiers on the injection pointdeclaringBean
- the declaringBean declaring the injection pointisTransient
- true
if the injection point is transientdelegate
- true
if the injection point is a delegate
injection point on a decoratorpublic ImmutableInjectionPoint(javax.enterprise.inject.spi.AnnotatedField<?> field, javax.enterprise.inject.spi.BeanManager beanManager, javax.enterprise.inject.spi.Bean<?> declaringBean, boolean isTransient, boolean delegate)
InjectionPoint
based upon an
AnnotatedField
, reading the qualifiers from the annotations
declared on the field.field
- the field for which to create the injection pointdeclaringBean
- the declaringBean declaring the injection pointisTransient
- true
if the injection point is transientdelegate
- true
if the injection point is a delegate
injection point on a decoratorpublic ImmutableInjectionPoint(javax.enterprise.inject.spi.AnnotatedParameter<?> parameter, Set<java.lang.annotation.Annotation> qualifiers, javax.enterprise.inject.spi.Bean<?> declaringBean, boolean isTransient, boolean delegate)
InjectionPoint
based upon an
AnnotatedParameter
.parameter
- the parameter for which to create the injection pointqualifiers
- the qualifiers on the injection pointdeclaringBean
- the declaringBean declaring the injection pointisTransient
- true
if the injection point is transientdelegate
- true
if the injection point is a delegate
injection point on a decoratorpublic ImmutableInjectionPoint(javax.enterprise.inject.spi.AnnotatedParameter<?> parameter, javax.enterprise.inject.spi.BeanManager beanManager, javax.enterprise.inject.spi.Bean<?> declaringBean, boolean isTransient, boolean delegate)
InjectionPoint
based upon an
AnnotatedParameter
, reading the qualifiers from the annotations
declared on the parameter.parameter
- the parameter for which to create the injection pointdeclaringBean
- the declaringBean declaring the injection pointisTransient
- true
if the injection point is transientdelegate
- true
if the injection point is a delegate
injection point on a decoratorpublic javax.enterprise.inject.spi.Annotated getAnnotated()
getAnnotated
in interface javax.enterprise.inject.spi.InjectionPoint
public javax.enterprise.inject.spi.Bean<?> getBean()
getBean
in interface javax.enterprise.inject.spi.InjectionPoint
public Member getMember()
getMember
in interface javax.enterprise.inject.spi.InjectionPoint
public Set<java.lang.annotation.Annotation> getQualifiers()
getQualifiers
in interface javax.enterprise.inject.spi.InjectionPoint
public Type getType()
getType
in interface javax.enterprise.inject.spi.InjectionPoint
public boolean isDelegate()
isDelegate
in interface javax.enterprise.inject.spi.InjectionPoint
public boolean isTransient()
isTransient
in interface javax.enterprise.inject.spi.InjectionPoint
Copyright © 2015 The Apache Software Foundation. All rights reserved.