Class ObserverMethodsBuilder<T>
- java.lang.Object
-
- org.apache.webbeans.component.creation.ObserverMethodsBuilder<T>
-
- Type Parameters:
T- bean class type
public class ObserverMethodsBuilder<T> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.enterprise.inject.spi.AnnotatedType<T>annotatedTypeprotected WebBeansContextwebBeansContext
-
Constructor Summary
Constructors Constructor Description ObserverMethodsBuilder(WebBeansContext webBeansContext, javax.enterprise.inject.spi.AnnotatedType<T> annotatedType)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.enterprise.inject.spi.ObserverMethod<?>defineObserverMethod(AbstractOwbBean<T> ownerBean, javax.enterprise.inject.spi.AnnotatedMethod<?> annotatedMethod, boolean checkContainerEvents)Check whether the given annotatedMethod is an ObserverMethod and verify itSet<javax.enterprise.inject.spi.ObserverMethod<?>>defineObserverMethods(AbstractOwbBean<T> ownerBean, boolean checkContainerEvents)
-
-
-
Field Detail
-
webBeansContext
protected final WebBeansContext webBeansContext
-
annotatedType
protected final javax.enterprise.inject.spi.AnnotatedType<T> annotatedType
-
-
Constructor Detail
-
ObserverMethodsBuilder
public ObserverMethodsBuilder(WebBeansContext webBeansContext, javax.enterprise.inject.spi.AnnotatedType<T> annotatedType)
Creates a new instance.
-
-
Method Detail
-
defineObserverMethods
public Set<javax.enterprise.inject.spi.ObserverMethod<?>> defineObserverMethods(AbstractOwbBean<T> ownerBean, boolean checkContainerEvents)
-
defineObserverMethod
public javax.enterprise.inject.spi.ObserverMethod<?> defineObserverMethod(AbstractOwbBean<T> ownerBean, javax.enterprise.inject.spi.AnnotatedMethod<?> annotatedMethod, boolean checkContainerEvents)
Check whether the given annotatedMethod is an ObserverMethod and verify it- Returns:
- the ObserverMethod or
nullif this method is not an observer.
-
-