public class AfterBeanDiscoveryImpl extends AbstractBeanDiscoveryEvent implements ExperimentalAfterBeanDiscovery
| Modifier and Type | Method and Description |
|---|---|
<T> BeanBuilder<T> |
addBean()
The
BeanBuilder.build() is invoked automatically and the resulting bean is registered after all observers are notified. |
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 |
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. |
<T> BeanBuilder<T> |
beanBuilder() |
static void |
fire(BeanManagerImpl beanManager,
Deployment deployment,
BeanDeploymentArchiveMapping bdaMapping,
Collection<ContextHolder<? extends Context>> contexts) |
<T> AnnotatedType<T> |
getAnnotatedType(Class<T> type,
String id)
Obtain the
AnnotatedType that may be used to read the annotations of the given class or interface as defined
during container initialization. |
<T> Iterable<AnnotatedType<T>> |
getAnnotatedTypes(Class<T> type)
Obtain the
AnnotatedTypes that may be used to read the annotations of the given class or interface as defined
during container initialization. |
protected <T> void |
processBeanRegistration(org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.BeanRegistration registration) |
getBeanDeployments, getContexts, getDeployment, getOrCreateBeanDeployment, getTypeStoreaddDefinitionError, firegetActualTypeArguments, getBeanManager, getErrors, getRawTypecheckWithinObserverNotification, getReceiver, postNotify, preNotifyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddDefinitionErrorpublic static void fire(BeanManagerImpl beanManager, Deployment deployment, BeanDeploymentArchiveMapping bdaMapping, Collection<ContextHolder<? extends Context>> contexts)
public 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 deploymentpublic <T> AnnotatedType<T> getAnnotatedType(Class<T> type, String id)
AfterBeanDiscoveryAnnotatedType that may be used to read the annotations of the given class or interface as defined
during container initialization.getAnnotatedType in interface AfterBeanDiscoveryT - the class or interfacetype - the Class objectid - the type identifier. If null, the fully qualifier class name of type is usedAnnotatedTypepublic <T> Iterable<AnnotatedType<T>> getAnnotatedTypes(Class<T> type)
AfterBeanDiscoveryAnnotatedTypes that may be used to read the annotations of the given class or interface as defined
during container initialization.getAnnotatedTypes in interface AfterBeanDiscoveryT - the class or interfacetype - the Class objectAnnotatedTypespublic <T> BeanBuilder<T> addBean()
ExperimentalAfterBeanDiscoveryBeanBuilder.build() is invoked automatically and the resulting bean is registered after all observers are notified.addBean in interface ExperimentalAfterBeanDiscoverypublic <T> BeanBuilder<T> beanBuilder()
beanBuilder in interface ExperimentalAfterBeanDiscoveryprotected <T> void processBeanRegistration(org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.BeanRegistration registration)
Copyright © 2015. All Rights Reserved.