|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.event.LifecycleEventManager org.apache.openjpa.validation.ValidatingLifecycleEventManager
public class ValidatingLifecycleEventManager
An extension of LifecycleEventManager which adds validation capabilities for specific lifecycle events. Validation occurs after firing all lifecycle events and callbacks.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.openjpa.event.LifecycleEventManager |
---|
LifecycleEventManager.ListenerAdapter, LifecycleEventManager.ListenerList |
Field Summary |
---|
Fields inherited from interface org.apache.openjpa.event.CallbackModes |
---|
CALLBACK_FAIL_FAST, CALLBACK_IGNORE, CALLBACK_LOG, CALLBACK_RETHROW, CALLBACK_ROLLBACK |
Constructor Summary | |
---|---|
ValidatingLifecycleEventManager()
Constructor which accepts a reference to the validator to use. |
Method Summary | |
---|---|
void |
endConfiguration()
Invoked upon completion of bean property configuration for this object. |
Exception[] |
fireEvent(Object source,
ClassMetaData meta,
int type)
Fire lifecycle event to all registered listeners without an argument. |
Exception[] |
fireEvent(Object source,
Object related,
ClassMetaData meta,
int type)
Fire lifecycle event to all registered listeners. |
boolean |
hasDeleteListeners(Object source,
ClassMetaData meta)
Return whether there are listeners or callbacks for the given source. |
boolean |
hasPersistListeners(Object source,
ClassMetaData meta)
Return whether there are listeners or callbacks for the given source. |
boolean |
hasUpdateListeners(Object source,
ClassMetaData meta)
Return whether there are listeners or callbacks for the given source. |
void |
setConfiguration(Configuration conf)
Invoked prior to setting bean properties. |
void |
startConfiguration()
Invoked before bean property configuration is begun on this object. |
Methods inherited from class org.apache.openjpa.event.LifecycleEventManager |
---|
addListener, hasAttachListeners, hasClearListeners, hasDetachListeners, hasDirtyListeners, hasLoadListeners, hasStoreListeners, isFailFast, removeListener, setFailFast |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidatingLifecycleEventManager()
validator
- Method Detail |
---|
public void endConfiguration()
Configurable
endConfiguration
in interface Configurable
public void setConfiguration(Configuration conf)
Configurable
setConfiguration
in interface Configurable
public void startConfiguration()
Configurable
startConfiguration
in interface Configurable
public boolean hasUpdateListeners(Object source, ClassMetaData meta)
LifecycleEventManager
hasUpdateListeners
in class LifecycleEventManager
public boolean hasPersistListeners(Object source, ClassMetaData meta)
LifecycleEventManager
hasPersistListeners
in class LifecycleEventManager
public boolean hasDeleteListeners(Object source, ClassMetaData meta)
LifecycleEventManager
hasDeleteListeners
in class LifecycleEventManager
public Exception[] fireEvent(Object source, ClassMetaData meta, int type)
LifecycleEventManager
fireEvent
in class LifecycleEventManager
public Exception[] fireEvent(Object source, Object related, ClassMetaData meta, int type)
LifecycleEventManager
fireEvent
in class LifecycleEventManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |