public class CompositeProxyExecutionListener extends Object implements ProxyExecutionListener
ProxyExecutionListeners.| Constructor and Description |
|---|
CompositeProxyExecutionListener() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(ProxyExecutionListener listener) |
boolean |
addAll(Collection<ProxyExecutionListener> listeners) |
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. |
List<ProxyExecutionListener> |
getListeners() |
void |
onMethodExecution(MethodExecutionInfo executionInfo)
Called before and after every invocation of methods.
|
void |
onQueryExecution(QueryExecutionInfo executionInfo)
Called before and after execution of query.
|
public void onMethodExecution(MethodExecutionInfo executionInfo)
ProxyExecutionListenerProxyExecutionListener.beforeMethod(MethodExecutionInfo) and
ProxyExecutionListener.afterMethod(MethodExecutionInfo). Thus overriding this method will stop calling them
unless subclass calls super.onMethodExecution(executionInfo);.onMethodExecution in interface ProxyExecutionListenerexecutionInfo - query execution contextpublic void onQueryExecution(QueryExecutionInfo executionInfo)
ProxyExecutionListenerProxyExecutionListener.beforeQuery(QueryExecutionInfo) and
ProxyExecutionListener.afterQuery(QueryExecutionInfo). Thus overriding this method will stop calling them
unless subclass calls super.onQueryExecution(executionInfo);.onQueryExecution in interface ProxyExecutionListenerexecutionInfo - query execution contextpublic 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 contextpublic boolean add(ProxyExecutionListener listener)
public boolean addAll(Collection<ProxyExecutionListener> listeners)
public List<ProxyExecutionListener> getListeners()
Copyright © 2018. All rights reserved.