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)
CallbackRegistry
hasRegisteredCallbacks
in interface CallbackRegistry
entityClass
- 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.CallbackRegistrar
registerCallbacks
in interface CallbackBuilder.CallbackRegistrar
entityClass
- The entity Class to register the Callbacks againstcallbacks
- The Callbacks to register against the given entity Classpublic void preCreate(Object bean)
preCreate
in interface CallbackRegistry
public void postCreate(Object bean)
postCreate
in interface CallbackRegistry
public boolean preUpdate(Object bean)
preUpdate
in interface CallbackRegistry
public void postUpdate(Object bean)
postUpdate
in interface CallbackRegistry
public void preRemove(Object bean)
preRemove
in interface CallbackRegistry
public void postRemove(Object bean)
postRemove
in interface CallbackRegistry
public boolean postLoad(Object bean)
postLoad
in interface CallbackRegistry
public void release()
public boolean hasPostCreateCallbacks(Class entityClass)
hasPostCreateCallbacks
in interface CallbackRegistry
public boolean hasPostUpdateCallbacks(Class entityClass)
hasPostUpdateCallbacks
in interface CallbackRegistry
public boolean hasPostRemoveCallbacks(Class entityClass)
hasPostRemoveCallbacks
in interface CallbackRegistry
public boolean hasRegisteredCallbacks(Class entityClass, Class annotationClass)
hasRegisteredCallbacks
in interface CallbackRegistry
Copyright © 2017 JBoss by Red Hat. All rights reserved.