public class ValidatingLifecycleEventManager extends LifecycleEventManager implements Configurable
LifecycleEventManager.ListenerAdapter, LifecycleEventManager.ListenerList
Modifier and Type | Field and Description |
---|---|
protected boolean |
_validationEnabled |
CALLBACK_FAIL_FAST, CALLBACK_IGNORE, CALLBACK_LOG, CALLBACK_RETHROW, CALLBACK_ROLLBACK
Constructor and Description |
---|
ValidatingLifecycleEventManager()
Constructor which accepts a reference to the validator to use.
|
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
isActive(ClassMetaData meta)
Whether this LifeCycleEventManager has had at least one listener or callback
registered.
|
boolean |
isValidationEnabled() |
void |
setConfiguration(Configuration conf)
Invoked prior to setting bean properties.
|
boolean |
setValidationEnabled(boolean enabled) |
void |
startConfiguration()
Invoked before bean property configuration is begun on this object.
|
addListener, hasAttachListeners, hasClearListeners, hasDetachListeners, hasDirtyListeners, hasLoadListeners, hasStoreListeners, isFailFast, removeListener, setFailFast
public ValidatingLifecycleEventManager()
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
public boolean isActive(ClassMetaData meta)
isActive
in class LifecycleEventManager
public boolean isValidationEnabled()
public boolean setValidationEnabled(boolean enabled)
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.