public class AfterBeanDiscoveryImpl extends AbstractBeanDiscoveryEvent implements AfterBeanDiscovery
| Modifier | Constructor and Description |
|---|---|
protected |
AfterBeanDiscoveryImpl(BeanManagerImpl beanManager,
Deployment deployment,
Map<BeanDeploymentArchive,BeanDeployment> beanDeployments,
Collection<ContextHolder<? extends Context>> contexts) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBean(Bean<?> bean)
Fires an event of type
ProcessBean
containing the given Bean and then
registers the Bean with the container,
thereby making it available for injection into other beans. |
void |
addContext(Context context)
Registers a custom
Context object
with the container. |
void |
addDefinitionError(Throwable t)
Registers a definition error with the container, causing the container to
abort deployment after all observers have been notified.
|
void |
addObserverMethod(ObserverMethod<?> observerMethod)
Fires an event of type
ProcessObserverMethod containing the
given ObserverMethod and then
registers the ObserverMethod with the
container, thereby making it available for event notifications. |
static void |
fire(BeanManagerImpl beanManager,
Deployment deployment,
Map<BeanDeploymentArchive,BeanDeployment> beanDeployments,
Collection<ContextHolder<? extends Context>> contexts) |
List<Throwable> |
getDefinitionErrors() |
getBeanDeployments, getDeployment, getOrCreateBeanDeployment, getTypeStorefire, firegetActualTypeArguments, getBeanManager, getErrors, getRawTypeprotected AfterBeanDiscoveryImpl(BeanManagerImpl beanManager, Deployment deployment, Map<BeanDeploymentArchive,BeanDeployment> beanDeployments, Collection<ContextHolder<? extends Context>> contexts)
public static void fire(BeanManagerImpl beanManager, Deployment deployment, Map<BeanDeploymentArchive,BeanDeployment> beanDeployments, Collection<ContextHolder<? extends Context>> contexts)
public void addDefinitionError(Throwable t)
AfterBeanDiscoveryaddDefinitionError in interface AfterBeanDiscoveryt - The definition error as a Throwablepublic void addBean(Bean<?> bean)
AfterBeanDiscoveryProcessBean
containing the given Bean and then
registers the Bean with the container,
thereby making it available for injection into other beans. The given
Bean may implement
Interceptor or
Decorator.addBean in interface AfterBeanDiscoverybean - The bean to add to the deploymentpublic void addContext(Context context)
AfterBeanDiscoveryContext object
with the container.addContext in interface AfterBeanDiscoverycontext - The custom context to add to the deploymentpublic void addObserverMethod(ObserverMethod<?> observerMethod)
AfterBeanDiscoveryProcessObserverMethod containing the
given ObserverMethod and then
registers the ObserverMethod with the
container, thereby making it available for event notifications.addObserverMethod in interface AfterBeanDiscoveryobserverMethod - The custom observer method to add to the deploymentCopyright © 2013 Seam Framework. All Rights Reserved.