public class ObserverMethodConfiguratorImpl<T> extends Object implements ObserverMethodConfigurator<T>
| Constructor and Description |
|---|
ObserverMethodConfiguratorImpl() |
ObserverMethodConfiguratorImpl(ObserverMethod<T> observerMethod) |
| Modifier and Type | Method and Description |
|---|---|
ObserverMethodConfigurator<T> |
addQualifier(Annotation qualifier)
Add the qualifier to the observed event
|
ObserverMethodConfigurator<T> |
addQualifiers(Annotation... qualifiers)
Add all the qualifiers to the Observed event
|
ObserverMethodConfigurator<T> |
addQualifiers(Set<Annotation> qualifiers)
Add all the qualifiers to the Observed event
|
ObserverMethodConfigurator<T> |
async(boolean async)
Allows modification of the asynchronous status of the observer to build.
|
ObserverMethodConfigurator<T> |
beanClass(Class<?> beanClass)
Set the class of the Bean containing this observer.
|
ObserverMethodConfigurator<T> |
notifyWith(java.util.function.BiConsumer<T,EventMetadata> callback)
Defines a BiConsumer to call when event is notified
|
ObserverMethodConfigurator<T> |
notifyWith(java.util.function.Consumer<T> callback)
Define Consumer to call when event is notified
|
ObserverMethodConfigurator<T> |
observedType(Type type)
Set the type of the observed event
|
ObserverMethodConfigurator<T> |
priority(int priority)
Set the priority for the observer to build
|
ObserverMethodConfigurator<T> |
qualifiers(Annotation... qualifiers)
Replace all qualifiers on the Observed event.
|
ObserverMethodConfigurator<T> |
qualifiers(Set<Annotation> qualifiers)
Replace all qualifiers on the Observed event.
|
ObserverMethodConfigurator<T> |
read(AnnotatedMethod<?> method)
Read observer meta data from a existing
AnnotatedMethod |
ObserverMethodConfigurator<T> |
read(Method method)
Read observer meta data from a existing
Method |
ObserverMethodConfigurator<T> |
read(ObserverMethod<T> observerMethod)
Read observer meta data from a existing ObserverMethod
|
ObserverMethodConfigurator<T> |
reception(Reception reception)
Set the
Reception mode for the observer to build |
ObserverMethodConfigurator<T> |
transactionPhase(TransactionPhase transactionPhase)
Set the
TransactionPhase for the observer to build |
public ObserverMethodConfiguratorImpl()
public ObserverMethodConfiguratorImpl(ObserverMethod<T> observerMethod)
public ObserverMethodConfigurator<T> read(Method method)
ObserverMethodConfiguratorMethodread in interface ObserverMethodConfigurator<T>method - to read meta data frompublic ObserverMethodConfigurator<T> read(AnnotatedMethod<?> method)
ObserverMethodConfiguratorAnnotatedMethodread in interface ObserverMethodConfigurator<T>method - to read meta data frompublic ObserverMethodConfigurator<T> read(ObserverMethod<T> observerMethod)
ObserverMethodConfiguratorread in interface ObserverMethodConfigurator<T>observerMethod - to read meta data frompublic ObserverMethodConfigurator<T> beanClass(Class<?> beanClass)
ObserverMethodConfiguratorbeanClass in interface ObserverMethodConfigurator<T>beanClass - the bean class containing this configurator.public ObserverMethodConfigurator<T> observedType(Type type)
ObserverMethodConfiguratorobservedType in interface ObserverMethodConfigurator<T>type - of the observed eventpublic ObserverMethodConfigurator<T> addQualifier(Annotation qualifier)
ObserverMethodConfiguratoraddQualifier in interface ObserverMethodConfigurator<T>qualifier - to add to eventpublic ObserverMethodConfigurator<T> addQualifiers(Annotation... qualifiers)
ObserverMethodConfiguratoraddQualifiers in interface ObserverMethodConfigurator<T>qualifiers - to add to eventpublic ObserverMethodConfigurator<T> addQualifiers(Set<Annotation> qualifiers)
ObserverMethodConfiguratoraddQualifiers in interface ObserverMethodConfigurator<T>qualifiers - to add to eventpublic ObserverMethodConfigurator<T> qualifiers(Annotation... qualifiers)
ObserverMethodConfiguratorqualifiers in interface ObserverMethodConfigurator<T>qualifiers - to put on eventpublic ObserverMethodConfigurator<T> qualifiers(Set<Annotation> qualifiers)
ObserverMethodConfiguratorqualifiers in interface ObserverMethodConfigurator<T>qualifiers - to put on eventpublic ObserverMethodConfigurator<T> reception(Reception reception)
ObserverMethodConfiguratorReception mode for the observer to buildreception in interface ObserverMethodConfigurator<T>reception - reception typepublic ObserverMethodConfigurator<T> transactionPhase(TransactionPhase transactionPhase)
ObserverMethodConfiguratorTransactionPhase for the observer to buildtransactionPhase in interface ObserverMethodConfigurator<T>transactionPhase - phase for the observerpublic ObserverMethodConfigurator<T> priority(int priority)
ObserverMethodConfiguratorpriority in interface ObserverMethodConfigurator<T>priority - priority of the observerpublic ObserverMethodConfigurator<T> notifyWith(java.util.function.Consumer<T> callback)
ObserverMethodConfiguratornotifyWith in interface ObserverMethodConfigurator<T>callback - to call for the event notificationpublic ObserverMethodConfigurator<T> notifyWith(java.util.function.BiConsumer<T,EventMetadata> callback)
ObserverMethodConfiguratornotifyWith in interface ObserverMethodConfigurator<T>callback - a BiConsumer taking an event type and an EventMetadata as type parameterspublic ObserverMethodConfigurator<T> async(boolean async)
ObserverMethodConfiguratorasync in interface ObserverMethodConfigurator<T>async - async statusCopyright © 2016. All Rights Reserved.