|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javasimon.proxy.DelegatingProxyFactory<T>
org.javasimon.callback.async.ExecutorProxyFactory<T>
T - public class ExecutorProxyFactory<T>
Proxy factory which can be used make any class asynchronous.
| Field Summary | |
|---|---|
private Executor |
executor
Executor used for invoking methods on delegate object |
| Constructor Summary | |
|---|---|
ExecutorProxyFactory(T delegate)
Constructor |
|
ExecutorProxyFactory(T delegate,
Executor executor)
Constructor |
|
| Method Summary | |
|---|---|
Executor |
getExecutor()
Get used executor |
protected Object |
invoke(DelegatingMethodInvocation<T> delegatingMethodInvocation)
Method to override in child classes |
void |
setExecutor(Executor executor)
Set used executor |
| Methods inherited from class org.javasimon.proxy.DelegatingProxyFactory |
|---|
getDelegate, invoke, newProxy, newProxy, newProxy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Executor executor
| Constructor Detail |
|---|
public ExecutorProxyFactory(T delegate)
delegate - Delegate object
public ExecutorProxyFactory(T delegate,
Executor executor)
delegate - Delegate objectexecutor - Executor used, see Executors| Method Detail |
|---|
public Executor getExecutor()
public void setExecutor(Executor executor)
executor - Executor
protected Object invoke(DelegatingMethodInvocation<T> delegatingMethodInvocation)
throws Throwable
DelegatingProxyFactory
invoke in class DelegatingProxyFactory<T>delegatingMethodInvocation - Method invocation (arguments, method name, etc.)
Throwable - Method invocation raised exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||