Package org.jboss.weld.bootstrap.events
Class ProcessAnnotatedTypeImpl<X>
- java.lang.Object
-
- org.jboss.weld.bootstrap.events.ContainerEvent
-
- org.jboss.weld.bootstrap.events.ProcessAnnotatedTypeImpl<X>
-
- All Implemented Interfaces:
ProcessAnnotatedType<X>,NotificationListener
- Direct Known Subclasses:
ProcessSyntheticAnnotatedTypeImpl
public class ProcessAnnotatedTypeImpl<X> extends ContainerEvent implements ProcessAnnotatedType<X>
Container lifecycle event for each Java class or interface discovered by the container.- Author:
- pmuir, David Allen, Jozef Hartinger
-
-
Constructor Summary
Constructors Modifier Constructor Description ProcessAnnotatedTypeImpl(BeanManagerImpl beanManager, SlimAnnotatedType<X> annotatedType)protectedProcessAnnotatedTypeImpl(BeanManagerImpl beanManager, SlimAnnotatedType<X> annotatedType, Class<? extends ProcessAnnotatedType> rawType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotatedTypeConfigurator<X>configureAnnotatedType()Returns anAnnotatedTypeConfiguratorinitialized with theAnnotatedTypeprocessed by this event to configure a new AnnotatedType that will replace the original one at the end of the observer invocation.AnnotatedType<X>getAnnotatedType()Returns theAnnotatedTypeobject that will be used by the container to read the declared annotations.SlimAnnotatedType<X>getOriginalAnnotatedType()SlimAnnotatedType<X>getResultingAnnotatedType()Call this method after all observer methods of this event have been invoked to get the final value of thisAnnotatedType.booleanisDirty()booleanisVeto()voidpostNotify(Extension extension)voidsetAnnotatedType(AnnotatedType<X> type)Replaces theAnnotatedType.StringtoString()voidveto()Forces the container to ignore this type.-
Methods inherited from class org.jboss.weld.bootstrap.events.ContainerEvent
checkWithinObserverNotification, getReceiver, preNotify
-
-
-
-
Constructor Detail
-
ProcessAnnotatedTypeImpl
public ProcessAnnotatedTypeImpl(BeanManagerImpl beanManager, SlimAnnotatedType<X> annotatedType)
-
ProcessAnnotatedTypeImpl
protected ProcessAnnotatedTypeImpl(BeanManagerImpl beanManager, SlimAnnotatedType<X> annotatedType, Class<? extends ProcessAnnotatedType> rawType)
-
-
Method Detail
-
getAnnotatedType
public AnnotatedType<X> getAnnotatedType()
Description copied from interface:ProcessAnnotatedTypeReturns theAnnotatedTypeobject that will be used by the container to read the declared annotations.- Specified by:
getAnnotatedTypein interfaceProcessAnnotatedType<X>- Returns:
- the
AnnotatedTypeobject
-
getResultingAnnotatedType
public SlimAnnotatedType<X> getResultingAnnotatedType()
Call this method after all observer methods of this event have been invoked to get the final value of thisAnnotatedType.- Returns:
- the resulting annotated type
-
getOriginalAnnotatedType
public SlimAnnotatedType<X> getOriginalAnnotatedType()
-
setAnnotatedType
public void setAnnotatedType(AnnotatedType<X> type)
Description copied from interface:ProcessAnnotatedTypeReplaces theAnnotatedType.- Specified by:
setAnnotatedTypein interfaceProcessAnnotatedType<X>- Parameters:
type- the newAnnotatedTypeobject to use
-
configureAnnotatedType
public AnnotatedTypeConfigurator<X> configureAnnotatedType()
Description copied from interface:ProcessAnnotatedTypeReturns anAnnotatedTypeConfiguratorinitialized with theAnnotatedTypeprocessed by this event to configure a new AnnotatedType that will replace the original one at the end of the observer invocation. Each call returns the same AnnotatedTypeConfigurator.- Specified by:
configureAnnotatedTypein interfaceProcessAnnotatedType<X>- Returns:
- a non reusable
AnnotatedTypeConfiguratorto configure the replacing AnnotatedType
-
veto
public void veto()
Description copied from interface:ProcessAnnotatedTypeForces the container to ignore this type.- Specified by:
vetoin interfaceProcessAnnotatedType<X>
-
isVeto
public boolean isVeto()
-
isDirty
public boolean isDirty()
-
postNotify
public void postNotify(Extension extension)
- Specified by:
postNotifyin interfaceNotificationListener- Overrides:
postNotifyin classContainerEvent
-
-