public interface ReactiveEntityCallbacks
EntityCallback objects and invoke these
with a specific entity.EntityCallback| Modifier and Type | Method and Description |
|---|---|
void |
addEntityCallback(EntityCallback<?> callback)
Add the given
callback using generic type argument detection for identification of supported
types. |
<T> reactor.core.publisher.Mono<T> |
callback(Class<? extends EntityCallback> callbackType,
T entity,
Object... args)
On
subscribe invoke the matching entity callbacks with given
arguments. |
static ReactiveEntityCallbacks |
create()
Obtain a new
ReactiveEntityCallbacks instance. |
static ReactiveEntityCallbacks |
create(BeanFactory beanFactory)
Obtain a new
ReactiveEntityCallbacks instance. |
static ReactiveEntityCallbacks |
create(EntityCallback<?>... callbacks)
Create a new
ReactiveEntityCallbacks instance with given callbacks. |
void addEntityCallback(EntityCallback<?> callback)
callback using generic type argument detection for identification of supported
types.callback - must not be null.IllegalArgumentException - if the required argument is null.<T> reactor.core.publisher.Mono<T> callback(Class<? extends EntityCallback> callbackType, T entity, Object... args)
subscribe invoke the matching entity callbacks with given
arguments.T - Entity type.callbackType - must not be null.entity - must not be null.args - optional arguments.Mono emitting the result after invoking the callbacks.IllegalArgumentException - if a required argument is null.static ReactiveEntityCallbacks create(EntityCallback<?>... callbacks)
ReactiveEntityCallbacks instance with given callbacks. callbacks are immediately added.static ReactiveEntityCallbacks create()
ReactiveEntityCallbacks instance. addEntityCallback(EntityCallback) to register callbacks manually.static ReactiveEntityCallbacks create(BeanFactory beanFactory)
ReactiveEntityCallbacks instance.
callbacks are pre loaded from the given BeanFactory.
Use addEntityCallback(EntityCallback) to register additional callbacks manually.
beanFactory - must not be null.IllegalArgumentException - if a required argument is null.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.