public class AfterBeanDiscoveryImpl extends AbstractBeanDiscoveryEvent implements ExperimentalAfterBeanDiscovery
| Modifier and Type | Method and Description |
|---|---|
<T> BeanConfigurator<T> |
addBean()
Obtains a new
BeanConfigurator to configure
a new Bean
and add it at the end of the observer invocation. |
void |
addBean(Bean<?> bean)
Fires an event of type
ProcessBean containing the given
Bean and then registers the Bean with the
container, thereby making a bean which is not an interceptor nor a decorator available for injection into other beans. |
void |
addContext(Context context)
Registers a custom
Context object with the container. |
InterceptorBuilder |
addInterceptor() |
<T> ObserverMethodConfigurator<T> |
addObserverMethod()
obtains a new
ObserverMethodConfigurator to configure a new ObserverMethod and add it at the end of the observer invocation. |
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,
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. |
InterceptorBuilder |
interceptorBuilder() |
protected <T> void |
processBeanRegistration(org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.BeanRegistration registration,
GlobalEnablementBuilder globalEnablementBuilder) |
getBeanDeployments, getContexts, getDeployment, getOrCreateBeanDeployment, getTypeStoreaddDefinitionError, firegetActualTypeArguments, getBeanManager, getErrors, getEventType, getRawTypegetReceiver, checkWithinObserverNotification, 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 a bean which is not an interceptor nor a decorator 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 <T> BeanConfigurator<T> addBean()
AfterBeanDiscoveryBeanConfigurator to configure
a new Bean
and add it at the end of the observer invocation.
It will then fire an event of type ProcessBean containing the built
Bean from this configuration and then register it with the
container, thereby making it available for injection into other beans.
Each call returns a new BeanConfigurator.addBean in interface AfterBeanDiscoveryBeanConfigurator to configure the bean to addpublic 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> ObserverMethodConfigurator<T> addObserverMethod()
AfterBeanDiscoveryObserverMethodConfigurator to configure a new ObserverMethod and add it at the end of the observer invocation.
It will then fire an event of type ProcessObserverMethod containing the built
ObserverMethod from this configuration and then registers the
ObserverMethod with the container, thereby making it available for event
notifications.
Each call returns a new ObserverMethodConfigurator.addObserverMethod in interface AfterBeanDiscoveryObserverMethodConfigurator instancepublic <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 InterceptorBuilder interceptorBuilder()
interceptorBuilder in interface ExperimentalAfterBeanDiscoverypublic InterceptorBuilder addInterceptor()
addInterceptor in interface ExperimentalAfterBeanDiscoveryprotected <T> void processBeanRegistration(org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.BeanRegistration registration, GlobalEnablementBuilder globalEnablementBuilder)
Copyright © 2016. All Rights Reserved.