public interface AsyncBeanDef<T>
Modifier and Type | Method and Description |
---|---|
Class<?> |
getBeanClass()
Returns the actual bean class represented by this bean.
|
void |
getInstance(CreationalCallback<T> callback)
Returns an instance of the bean within the active scope.
|
void |
getInstance(CreationalCallback<T> callback,
AsyncCreationalContext context)
Returns an instance of the bean within the active scope, using the specified SimpleCreationalContext.
|
String |
getName()
Returns the name of the bean.
|
Set<Annotation> |
getQualifiers()
Returns any qualifiers associated with the bean.
|
Class<? extends Annotation> |
getScope()
Returns the scope of the bean.
|
Class<T> |
getType()
Returns the type of the bean.
|
boolean |
isActivated()
Returns true if the bean is activated.
|
boolean |
isConcrete()
Returns true if the bean is a concrete bean definition and not an interface or abstract type.
|
boolean |
matches(Set<Annotation> annotations)
Returns true if the beans qualifiers match the specified set of qualifiers.
|
void |
newInstance(CreationalCallback<T> callback)
Returns a new instance of the bean.
|
Class<T> getType()
getBeanClass()
Class<?> getBeanClass()
Class<? extends Annotation> getScope()
void getInstance(CreationalCallback<T> callback)
void getInstance(CreationalCallback<T> callback, AsyncCreationalContext context)
context
- void newInstance(CreationalCallback<T> callback)
Set<Annotation> getQualifiers()
boolean matches(Set<Annotation> annotations)
annotations
- the qualifiers to compareString getName()
boolean isConcrete()
boolean isActivated()
BeanActivator
was specified using ActivatedBy
which will be consulted when
invoking this method.Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.