Class ReactiveEventSupport
java.lang.Object
org.springframework.data.neo4j.core.mapping.callback.ReactiveEventSupport
Utility class that orchestrates
EntityCallbacks
. Not to be used outside the framework.- Since:
- 6.0.2
- Author:
- Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptionstatic ReactiveEventSupport
discoverCallbacks
(Neo4jMappingContext context, BeanFactory beanFactory) Creates event support containing the required default events plus all entity callbacks discoverable through theBeanFactory
.<T> reactor.core.publisher.Mono<T>
maybeCallBeforeBind
(T object) static ReactiveEventSupport
useExistingCallbacks
(Neo4jMappingContext context, ReactiveEntityCallbacks entityCallbacks) Creates event support containing the required default events plus all explicitly defined events.
-
Method Details
-
discoverCallbacks
public static ReactiveEventSupport discoverCallbacks(Neo4jMappingContext context, BeanFactory beanFactory) Creates event support containing the required default events plus all entity callbacks discoverable through theBeanFactory
.- Parameters:
context
- The mapping context that is used in some of the callbacks.beanFactory
- The bean factory used to discover additional callbacks.- Returns:
- A new instance of the event support
-
useExistingCallbacks
public static ReactiveEventSupport useExistingCallbacks(Neo4jMappingContext context, ReactiveEntityCallbacks entityCallbacks) Creates event support containing the required default events plus all explicitly defined events.- Parameters:
context
- The mapping context that is used in some of the callbacks.entityCallbacks
- predefined callbacks.- Returns:
- A new instance of the event support
-
maybeCallBeforeBind
public <T> reactor.core.publisher.Mono<T> maybeCallBeforeBind(T object)
-