Package org.jboss.weld.bootstrap.events
Class AbstractProcessProducerBean<T,X,B extends AbstractProducerBean<T,X,?>>
- java.lang.Object
-
- org.jboss.weld.bootstrap.events.ContainerEvent
-
- org.jboss.weld.bootstrap.events.AbstractContainerEvent
-
- org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent
-
- org.jboss.weld.bootstrap.events.AbstractProcessProducerBean<T,X,B>
-
- All Implemented Interfaces:
ProcessBean<X>
,NotificationListener
- Direct Known Subclasses:
ProcessProducerFieldImpl
,ProcessProducerMethodImpl
public abstract class AbstractProcessProducerBean<T,X,B extends AbstractProducerBean<T,X,?>> extends AbstractDefinitionContainerEvent implements ProcessBean<X>
-
-
Constructor Summary
Constructors Constructor Description AbstractProcessProducerBean(BeanManagerImpl beanManager, Type rawType, Type[] actualTypeArguments, B bean)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Annotated
getAnnotated()
Returns theAnnotatedType
representing the bean class, theAnnotatedMethod
representing the producer method, or theAnnotatedField
representing the producer field.AnnotatedParameter<T>
getAnnotatedDisposedParameter()
B
getBean()
Returns theBean
object that is about to be registered.-
Methods inherited from class org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent
addDefinitionError, fire
-
Methods inherited from class org.jboss.weld.bootstrap.events.AbstractContainerEvent
getActualTypeArguments, getBeanManager, getErrors, getEventType, getRawType
-
Methods inherited from class org.jboss.weld.bootstrap.events.ContainerEvent
checkWithinObserverNotification, getReceiver, postNotify, preNotify
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jakarta.enterprise.inject.spi.ProcessBean
addDefinitionError
-
-
-
-
Constructor Detail
-
AbstractProcessProducerBean
public AbstractProcessProducerBean(BeanManagerImpl beanManager, Type rawType, Type[] actualTypeArguments, B bean)
-
-
Method Detail
-
getAnnotated
public Annotated getAnnotated()
Description copied from interface:ProcessBean
Returns theAnnotatedType
representing the bean class, theAnnotatedMethod
representing the producer method, or theAnnotatedField
representing the producer field.If invoked upon a
ProcessSyntheticBean
event, non-portable behavior results and the returned value should be ignored.- Specified by:
getAnnotated
in interfaceProcessBean<T>
- Returns:
- the
Annotated
for the bean being registered
-
getBean
public B getBean()
Description copied from interface:ProcessBean
Returns theBean
object that is about to be registered. TheBean
may implementInterceptor
orDecorator
.- Specified by:
getBean
in interfaceProcessBean<T>
- Returns:
- the
Bean
object about to be registered
-
getAnnotatedDisposedParameter
public AnnotatedParameter<T> getAnnotatedDisposedParameter()
-
-