@Module public class DelegateProxyBean extends java.lang.Object implements Bean<java.lang.Object>
Modifier and Type | Field and Description |
---|---|
static DelegateProxyBean |
BEAN |
Constructor and Description |
---|
DelegateProxyBean() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
create(CreationalContext<java.lang.Object> creationalContext)
Creates a new instance for the Contextual's type.
|
void |
destroy(java.lang.Object instance,
CreationalContext<java.lang.Object> creationalContext)
Destroys an instance for the Contextual's type.
|
java.lang.Class<?> |
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 qualifier 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 stereotypes that the bean uses for priority
|
java.util.Set<java.lang.reflect.Type> |
getTypes()
Returns the types that the bean exports for bindings.
|
boolean |
isAlternative()
True for a disabled alternative.
|
boolean |
isNullable()
Returns true if the bean can be null
|
public static final DelegateProxyBean BEAN
public java.lang.Class<?> getBeanClass()
Bean
getBeanClass
in interface Bean<java.lang.Object>
public java.util.Set<InjectionPoint> getInjectionPoints()
Bean
getInjectionPoints
in interface Bean<java.lang.Object>
public java.lang.String getName()
Bean
public java.util.Set<java.lang.annotation.Annotation> getQualifiers()
Bean
getQualifiers
in interface Bean<java.lang.Object>
public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
Bean
public java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getStereotypes()
Bean
getStereotypes
in interface Bean<java.lang.Object>
public java.util.Set<java.lang.reflect.Type> getTypes()
Bean
public boolean isAlternative()
Bean
isAlternative
in interface Bean<java.lang.Object>
public boolean isNullable()
Bean
isNullable
in interface Bean<java.lang.Object>
public java.lang.Object create(CreationalContext<java.lang.Object> creationalContext)
Contextual
create
in interface Contextual<java.lang.Object>
creationalContext
- the creation context used to support circular
references.public void destroy(java.lang.Object instance, CreationalContext<java.lang.Object> creationalContext)
Contextual
@Disposal
method
@PreDestroy
methods
destroy
in interface Contextual<java.lang.Object>
instance
- the instance to destroy