@Module public class InjectionPointStandardBean extends java.lang.Object implements Bean<InjectionPoint>, AnnotatedBean
Constructor and Description |
---|
InjectionPointStandardBean() |
Modifier and Type | Method and Description |
---|---|
InjectionPoint |
create(CreationalContext<InjectionPoint> env)
Creates a new instance for the Contextual's type.
|
void |
destroy(InjectionPoint instance,
CreationalContext<InjectionPoint> env)
Destroys an instance for the Contextual's type.
|
Annotated |
getAnnotated() |
java.lang.Class<InjectionPoint> |
getBeanClass()
Returns the bean class.
|
java.util.Set<InjectionPoint> |
getInjectionPoints()
Returns the set of injection points, for validation.
|
java.lang.String |
getName()
Returns the bean's name or null if the bean does not have a
primary name.
|
java.util.Set<java.lang.annotation.Annotation> |
getQualifiers()
Returns the bean's binding annotations.
|
java.lang.Class<? extends java.lang.annotation.Annotation> |
getScope()
Returns the bean's scope type.
|
java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getStereotypes()
Returns the bean's stereotype annotations.
|
java.util.Set<java.lang.reflect.Type> |
getTypes()
Returns the types that the bean exports for bindings.
|
boolean |
isAlternative()
Returns true if the bean can be null
|
boolean |
isNullable()
Returns true if the bean can be null
|
boolean |
isPassivationCapable()
Returns true if the bean is serializable
|
java.lang.String |
toString() |
public java.lang.Class<InjectionPoint> getBeanClass()
Bean
getBeanClass
in interface Bean<InjectionPoint>
public java.util.Set<java.lang.annotation.Annotation> getQualifiers()
getQualifiers
in interface Bean<InjectionPoint>
public java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getStereotypes()
getStereotypes
in interface Bean<InjectionPoint>
public java.util.Set<InjectionPoint> getInjectionPoints()
getInjectionPoints
in interface Bean<InjectionPoint>
public java.lang.String getName()
getName
in interface Bean<InjectionPoint>
public boolean isNullable()
isNullable
in interface Bean<InjectionPoint>
public boolean isAlternative()
isAlternative
in interface Bean<InjectionPoint>
public boolean isPassivationCapable()
public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
getScope
in interface Bean<InjectionPoint>
public java.util.Set<java.lang.reflect.Type> getTypes()
getTypes
in interface Bean<InjectionPoint>
public InjectionPoint create(CreationalContext<InjectionPoint> env)
Contextual
create
in interface Contextual<InjectionPoint>
env
- the creation context used to support circular
references.public void destroy(InjectionPoint instance, CreationalContext<InjectionPoint> env)
Contextual
@Disposal
method
@PreDestroy
methods
destroy
in interface Contextual<InjectionPoint>
instance
- the instance to destroypublic Annotated getAnnotated()
getAnnotated
in interface AnnotatedBean
public java.lang.String toString()
toString
in class java.lang.Object