public class LifeCycleExecutionListener extends Object implements ProxyExecutionListener
LifeCycleListener.LifeCycleListener| Constructor and Description |
|---|
LifeCycleExecutionListener(LifeCycleListener delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterMethod(MethodExecutionInfo executionInfo)
Called after every invocation of methods.
|
void |
afterQuery(QueryExecutionInfo execInfo)
Called after execution of query.
|
void |
beforeMethod(MethodExecutionInfo executionInfo)
Called before every invocation of methods.
|
void |
beforeQuery(QueryExecutionInfo execInfo)
Called before execution of query.
|
void |
eachQueryResult(QueryExecutionInfo execInfo)
Called on processing each query
Result. |
static LifeCycleExecutionListener |
of(LifeCycleListener lifeCycleListener) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonMethodExecution, onQueryExecutionpublic LifeCycleExecutionListener(LifeCycleListener delegate)
public static LifeCycleExecutionListener of(LifeCycleListener lifeCycleListener)
public void beforeMethod(MethodExecutionInfo executionInfo)
ProxyExecutionListenerbeforeMethod in interface ProxyExecutionListenerexecutionInfo - method execution contextpublic void afterMethod(MethodExecutionInfo executionInfo)
ProxyExecutionListenerafterMethod in interface ProxyExecutionListenerexecutionInfo - method execution contextpublic void beforeQuery(QueryExecutionInfo execInfo)
ProxyExecutionListenerBatch.execute() or Statement.execute().
Note: this callback is called when the publisher, result of the execute(), is being
subscribed. Not at the time of execute() is called,beforeQuery in interface ProxyExecutionListenerexecInfo - query execution contextpublic void afterQuery(QueryExecutionInfo execInfo)
ProxyExecutionListenerBatch.execute() or Statement.execute().
Note: this callback is called when the publisher, result of the execute(), is being
subscribed. Not at the time of execute() is called,afterQuery in interface ProxyExecutionListenerexecInfo - query execution contextpublic void eachQueryResult(QueryExecutionInfo execInfo)
ProxyExecutionListenerResult.
While subscribing query results, this callback is called per result.eachQueryResult in interface ProxyExecutionListenerexecInfo - query execution contextCopyright © 2018. All rights reserved.