Package org.jboss.weld.bootstrap.events
Class ProcessInjectionPointImpl<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.ProcessInjectionPointImpl<T,X>
-
- All Implemented Interfaces:
ProcessInjectionPoint<T,X>,NotificationListener
public class ProcessInjectionPointImpl<T,X> extends AbstractDefinitionContainerEvent implements ProcessInjectionPoint<T,X>
- Author:
- Jozef Hartinger, Martin Kouba
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedProcessInjectionPointImpl(InjectionPoint ip, Class<?> declaringComponentClass, BeanManagerImpl beanManager, Type injectionPointType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InjectionPointConfiguratorconfigureInjectionPoint()Returns anInjectionPointConfiguratorinitialized with theInjectionPointprocessed by this event to configure a new InjectionPoint that will replace the original one at the end of the observer invocation.protected static <T,X>
FieldInjectionPointAttributes<T,X>fire(FieldInjectionPointAttributes<T,X> attributes, Class<?> declaringComponentClass, BeanManagerImpl manager)static <T,X>
ParameterInjectionPointAttributes<T,X>fire(ParameterInjectionPointAttributes<T,X> attributes, Class<?> declaringComponentClass, BeanManagerImpl manager)InjectionPointgetInjectionPoint()booleanisDirty()voidpostNotify(Extension extension)voidsetInjectionPoint(InjectionPoint injectionPoint)Replaces the InjectionPoint.-
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, preNotify
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.enterprise.inject.spi.ProcessInjectionPoint
addDefinitionError
-
-
-
-
Constructor Detail
-
ProcessInjectionPointImpl
protected ProcessInjectionPointImpl(InjectionPoint ip, Class<?> declaringComponentClass, BeanManagerImpl beanManager, Type injectionPointType)
-
-
Method Detail
-
fire
protected static <T,X> FieldInjectionPointAttributes<T,X> fire(FieldInjectionPointAttributes<T,X> attributes, Class<?> declaringComponentClass, BeanManagerImpl manager)
-
fire
public static <T,X> ParameterInjectionPointAttributes<T,X> fire(ParameterInjectionPointAttributes<T,X> attributes, Class<?> declaringComponentClass, BeanManagerImpl manager)
-
getInjectionPoint
public InjectionPoint getInjectionPoint()
- Specified by:
getInjectionPointin interfaceProcessInjectionPoint<T,X>- Returns:
- the InjectionPoint object that will be used by the container to perform injection
-
setInjectionPoint
public void setInjectionPoint(InjectionPoint injectionPoint)
Description copied from interface:ProcessInjectionPointReplaces the InjectionPoint.- Specified by:
setInjectionPointin interfaceProcessInjectionPoint<T,X>- Parameters:
injectionPoint- the new injection point
-
configureInjectionPoint
public InjectionPointConfigurator configureInjectionPoint()
Description copied from interface:ProcessInjectionPointReturns anInjectionPointConfiguratorinitialized with theInjectionPointprocessed by this event to configure a new InjectionPoint that will replace the original one at the end of the observer invocation. Each call returns the same InjectionPointConfigurator- Specified by:
configureInjectionPointin interfaceProcessInjectionPoint<T,X>- Returns:
- a non reusable
InjectionPointConfiguratorto configure the replacing InjectionPoint
-
isDirty
public boolean isDirty()
-
postNotify
public void postNotify(Extension extension)
- Specified by:
postNotifyin interfaceNotificationListener- Overrides:
postNotifyin classContainerEvent
-
-