@API(status=INTERNAL,
since="6.0.2")
public final class EventSupport
extends Object
EntityCallbacks. Not to be used outside the framework.| Modifier and Type | Method and Description |
|---|---|
static EventSupport |
discoverCallbacks(Neo4jMappingContext context,
BeanFactory beanFactory)
Creates event support containing the required default events plus all entity callbacks discoverable through
the
BeanFactory. |
<T> T |
maybeCallAfterConvert(T object,
Neo4jPersistentEntity<T> entity,
org.neo4j.driver.types.MapAccessor source) |
<T> T |
maybeCallBeforeBind(T object) |
static EventSupport |
useExistingCallbacks(Neo4jMappingContext context,
EntityCallbacks entityCallbacks)
Creates event support containing the required default events plus all explicitly defined events.
|
public static EventSupport discoverCallbacks(Neo4jMappingContext context, BeanFactory beanFactory)
BeanFactory.context - The mapping context that is used in some of the callbacks.beanFactory - The bean factory used to discover additional callbacks.public static EventSupport useExistingCallbacks(Neo4jMappingContext context, EntityCallbacks entityCallbacks)
context - The mapping context that is used in some of the callbacks.entityCallbacks - predefined callbacks.@Nullable public <T> T maybeCallAfterConvert(@Nullable T object, Neo4jPersistentEntity<T> entity, org.neo4j.driver.types.MapAccessor source)
T - Expected typeobject - The freshly converted instanceentity - The entitysource - The source of the instanceCopyright © 2019–2022 Neo4j, Neo4j Sweden AB. All rights reserved.