@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 |
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.public <T> T maybeCallBeforeBind(T object)
Copyright © 2019–2021 Neo4j, Neo4j Sweden AB. All rights reserved.