public class CallbackRegistryImpl extends Object implements CallbackRegistry, CallbackBuilder.CallbackRegistrar
| Constructor and Description |
|---|
CallbackRegistryImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasPostCreateCallbacks(Class entityClass) |
boolean |
hasPostRemoveCallbacks(Class entityClass) |
boolean |
hasPostUpdateCallbacks(Class entityClass) |
boolean |
hasRegisteredCallbacks(Class entityClass,
CallbackType callbackType)
Do we have any registered callbacks of the given type for the given entity?
|
boolean |
hasRegisteredCallbacks(Class entityClass,
Class annotationClass) |
void |
postCreate(Object bean) |
boolean |
postLoad(Object bean) |
void |
postRemove(Object bean) |
void |
postUpdate(Object bean) |
void |
preCreate(Object bean) |
void |
preRemove(Object bean) |
boolean |
preUpdate(Object bean) |
void |
registerCallbacks(Class entityClass,
Callback[] callbacks)
Register the callback against the given entity.
|
void |
release() |
public boolean hasRegisteredCallbacks(Class entityClass, CallbackType callbackType)
CallbackRegistryhasRegisteredCallbacks in interface CallbackRegistryentityClass - The entity Class to check againstcallbackType - The type of callback to look fortrue indicates there are already registered callbacks of
that type for that class; false indicates there are not.public void registerCallbacks(Class entityClass, Callback[] callbacks)
CallbackBuilder.CallbackRegistrarregisterCallbacks in interface CallbackBuilder.CallbackRegistrarentityClass - The entity Class to register the Callbacks againstcallbacks - The Callbacks to register against the given entity Classpublic void preCreate(Object bean)
preCreate in interface CallbackRegistrypublic void postCreate(Object bean)
postCreate in interface CallbackRegistrypublic boolean preUpdate(Object bean)
preUpdate in interface CallbackRegistrypublic void postUpdate(Object bean)
postUpdate in interface CallbackRegistrypublic void preRemove(Object bean)
preRemove in interface CallbackRegistrypublic void postRemove(Object bean)
postRemove in interface CallbackRegistrypublic boolean postLoad(Object bean)
postLoad in interface CallbackRegistrypublic void release()
public boolean hasPostCreateCallbacks(Class entityClass)
hasPostCreateCallbacks in interface CallbackRegistrypublic boolean hasPostUpdateCallbacks(Class entityClass)
hasPostUpdateCallbacks in interface CallbackRegistrypublic boolean hasPostRemoveCallbacks(Class entityClass)
hasPostRemoveCallbacks in interface CallbackRegistrypublic boolean hasRegisteredCallbacks(Class entityClass, Class annotationClass)
hasRegisteredCallbacks in interface CallbackRegistryCopyright © 2019 JBoss by Red Hat. All rights reserved.