| Modifier and Type | Method and Description |
|---|---|
ObserverMethod<T> |
ProcessObserverMethod.getObserverMethod()
The
ObserverMethod object that will be used by the container to invoke the observer
when a matching event is fired. |
| Modifier and Type | Method and Description |
|---|---|
<T> Set<ObserverMethod<? super T>> |
BeanManager.resolveObserverMethods(T event,
Annotation... qualifiers)
Return an ordered set of observer methods for an event.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AfterBeanDiscovery.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. |
void |
ProcessObserverMethod.setObserverMethod(ObserverMethod<T> observerMethod)
Replaces the
ObserverMethod. |
| Modifier and Type | Method and Description |
|---|---|
ObserverMethodConfigurator<T> |
ObserverMethodConfigurator.read(ObserverMethod<T> method)
Read observer meta data from a existing ObserverMethod
|
| Modifier and Type | Method and Description |
|---|---|
<T> Set<ObserverMethod<? super T>> |
BeanManagerProxy.resolveObserverMethods(T event,
Annotation... qualifiers) |
| Constructor and Description |
|---|
FastProcessAnnotatedTypeResolver(Iterable<ObserverMethod<?>> observers) |
| Modifier and Type | Method and Description |
|---|---|
static <T,X> ObserverMethod<T> |
ProcessObserverMethodImpl.fire(BeanManagerImpl beanManager,
AnnotatedMethod<X> beanMethod,
ObserverMethod<T> observerMethod) |
<T> ObserverMethod<T> |
ContainerLifecycleEvents.fireProcessObserverMethod(BeanManagerImpl beanManager,
ObserverMethod<T> observer) |
<T,X> ObserverMethod<T> |
ContainerLifecycleEvents.fireProcessObserverMethod(BeanManagerImpl beanManager,
ObserverMethodImpl<T,X> observer) |
ObserverMethod<T> |
ProcessObserverMethodImpl.getObserverMethod() |
| Modifier and Type | Method and Description |
|---|---|
void |
AfterBeanDiscoveryImpl.addObserverMethod(ObserverMethod<?> observerMethod) |
static <T,X> ObserverMethod<T> |
ProcessObserverMethodImpl.fire(BeanManagerImpl beanManager,
AnnotatedMethod<X> beanMethod,
ObserverMethod<T> observerMethod) |
<T> ObserverMethod<T> |
ContainerLifecycleEvents.fireProcessObserverMethod(BeanManagerImpl beanManager,
ObserverMethod<T> observer) |
void |
ContainerLifecycleEvents.processObserverMethod(ObserverMethod<?> observer) |
void |
ProcessObserverMethodImpl.setObserverMethod(ObserverMethod<T> observerMethod) |
| Modifier and Type | Method and Description |
|---|---|
ObserverMethod<T> |
ObserverMethodBuilderImpl.build() |
| Modifier and Type | Method and Description |
|---|---|
ObserverMethodConfigurator<T> |
ObserverMethodConfiguratorImpl.read(ObserverMethod<T> observerMethod) |
| Constructor and Description |
|---|
ObserverMethodConfiguratorImpl(ObserverMethod<T> observerMethod) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ContainerLifecycleEventObserverMethod<T>
Marker interface for container lifecycle event observer methods.
|
interface |
EventMetadataAwareObserverMethod<T>
Marker interface for observer methods which are able to decide whether an access to
EventMetadata is required or not. |
interface |
SyntheticObserverMethod<T>
Marker interface for synthetic observer methods.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ExtensionObserverMethodImpl<T,X>
An implementation of
ObserverMethod used for events delivered to extensions. |
class |
ObserverMethodImpl<T,X>
Reference implementation for the ObserverMethod interface, which represents an observer method.
|
| Modifier and Type | Method and Description |
|---|---|
Iterable<ObserverMethod<?>> |
GlobalObserverNotifierService.getAllObserverMethods() |
List<ObserverMethod<? super T>> |
ResolvedObservers.getAllObservers()
Returns all observer methods.
|
| Modifier and Type | Method and Description |
|---|---|
protected <T,U extends T> |
ObserverNotifier.notifyAsyncObservers(List<ObserverMethod<? super T>> observers,
U event,
EventMetadata metadata,
Executor executor,
ObserverNotifier.ObserverExceptionHandler handler) |
protected <T> void |
ObserverNotifier.notifySyncObservers(List<ObserverMethod<? super T>> observers,
T event,
EventMetadata metadata,
ObserverNotifier.ObserverExceptionHandler handler) |
protected <T> void |
ObserverNotifier.notifyTransactionObservers(List<ObserverMethod<? super T>> observers,
T event,
EventMetadata metadata,
ObserverNotifier.ObserverExceptionHandler handler) |
static <T> ResolvedObservers<T> |
ResolvedObservers.of(List<ObserverMethod<? super T>> observers) |
| Modifier and Type | Method and Description |
|---|---|
void |
ExperimentalProcessObserverMethod.setObserverMethod(ObserverMethod<T> observerMethod)
Replaces the observer method.
|
| Modifier and Type | Method and Description |
|---|---|
DefinitionException |
EventLogger.asyncContainerLifecycleEventObserver(ObserverMethod<?> observer,
Object stackElement) |
DefinitionException |
EventLogger.beanClassMismatch(ObserverMethod<?> originalObserverMethod,
ObserverMethod<?> observerMethod) |
DefinitionException |
EventLogger.beanClassMismatch(ObserverMethod<?> originalObserverMethod,
ObserverMethod<?> observerMethod) |
void |
BootstrapLogger.notUsingFastResolver(ObserverMethod<?> observer) |
| Modifier and Type | Method and Description |
|---|---|
List<ObserverMethod<?>> |
BeanManagerImpl.getObservers() |
<T> Set<ObserverMethod<? super T>> |
BeanManagerImpl.resolveObserverMethods(T event,
Annotation... bindings) |
<T> List<ObserverMethod<? super T>> |
BeanManagerImpl.resolveObserverMethodsInOrder(T event,
Annotation... bindings) |
| Modifier and Type | Method and Description |
|---|---|
void |
BeanManagerImpl.addObserver(ObserverMethod<?> observer)
Does the actual observer registration
|
| Modifier and Type | Method and Description |
|---|---|
protected Set<ObserverMethod<?>> |
TypeSafeObserverResolver.filterResult(Set<ObserverMethod<?>> matched) |
protected List<ObserverMethod<?>> |
TypeSafeObserverResolver.sortResult(Set<ObserverMethod<?>> matched) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
TypeSafeObserverResolver.matches(Resolvable resolvable,
ObserverMethod<?> observer) |
| Modifier and Type | Method and Description |
|---|---|
protected Set<ObserverMethod<?>> |
TypeSafeObserverResolver.filterResult(Set<ObserverMethod<?>> matched) |
protected ResolvedObservers<?> |
TypeSafeObserverResolver.makeResultImmutable(List<ObserverMethod<?>> result) |
protected List<ObserverMethod<?>> |
TypeSafeObserverResolver.sortResult(Set<ObserverMethod<?>> matched) |
| Constructor and Description |
|---|
TypeSafeObserverResolver(MetaAnnotationStore metaAnnotationStore,
Iterable<ObserverMethod<?>> observers,
WeldConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
<T> Set<ObserverMethod<? super T>> |
ForwardingBeanManager.resolveObserverMethods(T event,
Annotation... qualifiers) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
Observers.isContainerLifecycleObserverMethod(ObserverMethod<?> method) |
static boolean |
Observers.isEventMetadataRequired(ObserverMethod<?> observer)
Determines whether the given observer method is either extension-provided or contains an injection point with
EventMetadata type. |
static boolean |
Observers.isObserverMethodEnabled(ObserverMethod<?> method,
BeanManagerImpl manager) |
static <T> void |
Observers.notify(ObserverMethod<? super T> observerMethod,
T event,
EventMetadata eventMetadata) |
static void |
Observers.validateObserverMethod(ObserverMethod<?> observerMethod,
BeanManager beanManager,
ObserverMethod<?> originalObserverMethod)
Validates given external observer method.
|
static void |
Observers.validateObserverMethod(ObserverMethod<?> observerMethod,
BeanManager beanManager,
ObserverMethod<?> originalObserverMethod)
Validates given external observer method.
|
Copyright © 2016. All Rights Reserved.