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,
EnablementBuilder enablementBuilder) |
| 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,
EnablementBuilder enablementBuilder) |
List<Throwable> |
getDefinitionErrors() |
protected <T> void |
processBean(Bean<T> b) |
getBeanDeployments, getDeployment, getOrCreateBeanDeployment, getTypeStorefiregetActualTypeArguments, getBeanManager, getErrors, getObserverMethod, getRawType, getReceiver, setObserverMethod, setReceiverprotected AfterBeanDiscoveryImpl(BeanManagerImpl beanManager, Deployment deployment, Map<BeanDeploymentArchive,BeanDeployment> beanDeployments, Collection<ContextHolder<? extends Context>> contexts, EnablementBuilder enablementBuilder)
public static void fire(BeanManagerImpl beanManager, Deployment deployment, Map<BeanDeploymentArchive,BeanDeployment> beanDeployments, Collection<ContextHolder<? extends Context>> contexts, EnablementBuilder enablementBuilder)
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 deploymentprotected <T> void processBean(Bean<T> b)
public 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 © 2012 Seam Framework. All Rights Reserved.