|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjfun.yan.etc.InjectingProxy
public final class InjectingProxy
A proxy class that injects dependencies into objects returned from the proxied methods.
a Mutation object is used to fulfill the injection.
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
static java.lang.Object |
getInjectingProxy(java.lang.ClassLoader cloader,
java.lang.Class[] itfs,
java.lang.Object proxied,
java.lang.Class injectee_type,
Mutation injector)
To create a proxy that injects dependency into return values of the proxied methods. |
static java.lang.Object |
getInjectingProxy(java.lang.ClassLoader cloader,
java.lang.Class itf,
java.lang.Object proxied,
java.lang.Class injectee_type,
Mutation injector)
To create a proxy that injects dependency into return values of the proxied methods. |
static java.lang.Object |
getInjectingProxy(java.lang.Class itf,
java.lang.Object proxied,
java.lang.Class injectee_type,
Mutation injector)
To create a proxy that injects dependency into return values of the proxied methods. |
static java.lang.Object |
getInjectingProxy(java.lang.Object proxied,
java.lang.Class injectee_type,
Mutation injector)
To create a proxy that injects dependency into return values of the proxied methods. |
int |
hashCode()
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method mtd,
java.lang.Object[] args)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method mtd,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.Throwablepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
public static java.lang.Object getInjectingProxy(java.lang.ClassLoader cloader,
java.lang.Class[] itfs,
java.lang.Object proxied,
java.lang.Class injectee_type,
Mutation injector)
cloader - the ClassLoader used by the dynamic proxy.itfs - the interfaces that the proxy object implements.proxied - the object to be proxied.injectee_type - For return values of this type, dependencies are injected.injector - the object responsible for injecting dependencies.
public static java.lang.Object getInjectingProxy(java.lang.ClassLoader cloader,
java.lang.Class itf,
java.lang.Object proxied,
java.lang.Class injectee_type,
Mutation injector)
cloader - the ClassLoader used by the dynamic proxy.itf - the interface that the proxy object implements.proxied - the object to be proxied.injectee_type - For return values of this type, dependencies are injected.injector - the object responsible for injecting dependencies.
public static java.lang.Object getInjectingProxy(java.lang.Class itf,
java.lang.Object proxied,
java.lang.Class injectee_type,
Mutation injector)
The ClassLoader of the proxied object is used to load the proxy class.
itf - the interface that the proxy object implements.proxied - the object to be proxied.injectee_type - For return values of this type, dependencies are injected.injector - the object responsible for injecting dependencies.
public static java.lang.Object getInjectingProxy(java.lang.Object proxied,
java.lang.Class injectee_type,
Mutation injector)
The ClassLoader of the proxied object is used to load the proxy class.
proxied - the object to be proxied.injectee_type - For return values of this type, dependencies are injected.injector - the object responsible for injecting dependencies.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||