public interface ClientBeanManager
Modifier and Type | Method and Description |
---|---|
void |
addBeanToContext(Object ref,
CreationalContext creationalContext)
Associates a bean instance with a creational context.
|
boolean |
addDestructionCallback(Object beanInstance,
DestructionCallback<?> destructionCallback)
Associates a
DestructionCallback with a bean instance. |
void |
addProxyReference(Object proxyRef,
Object realRef)
Associates the reference to a proxied bean to the underlying bean instance which it is proxying.
|
void |
destroyAllBeans()
Destroy all beans currently managed by the bean manager.
|
void |
destroyBean(Object ref)
Destroy a bean and all other beans associated with its creational context in the bean manager.
|
Object |
getActualBeanReference(Object ref)
Obtains an instance to the actual bean.
|
boolean |
isManaged(Object ref)
Indicates whether the referenced object is currently a managed bean.
|
boolean |
isProxyReference(Object ref)
Determines whether the referenced object is itself a proxy to a managed bean.
|
void destroyBean(Object ref)
ref
- the instance reference of the beanboolean isManaged(Object ref)
ref
- the reference to the beanObject getActualBeanReference(Object ref)
ref
- the proxied or unproxied referenceisProxyReference(Object)
void addProxyReference(Object proxyRef, Object realRef)
proxyRef
- the reference to the proxyrealRef
- the reference to the bean being proxied.boolean isProxyReference(Object ref)
ref
- the reference to checkgetActualBeanReference(Object)
boolean addDestructionCallback(Object beanInstance, DestructionCallback<?> destructionCallback)
DestructionCallback
with a bean instance. If the bean manager cannot find a valid
CreationalContext
to associate with the bean, or the bean is no longer considered active, the method
returns false. Otherwise, the method returns true, indicating the callback is now registered
and will be called when the bean is destroyed.beanInstance
- the bean instance to associate the callback to.destructionCallback
- the instance of the DestructionCallback
.DestructionCallback
is successfully registered against a valid
CreationalContext
and false if not.void addBeanToContext(Object ref, CreationalContext creationalContext)
ref
- the reference to the beancreationalContext
- the CreationalContext
instance to associate the bean instance with.void destroyAllBeans()
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.