|
Evaluating Software Design Patterns — the "Gang of Four" patterns implemented in Java 6 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdk.rode.thesis.meta.reflect.proxy.ReferenceInvocationHandler
public class ReferenceInvocationHandler
A reference invocation handler is an invocation handler that has
support for referenced objects.
Reference,
ProxyFactory.getSharedObject(Object, String, Class[], String...)| Field Summary | |
|---|---|
private Reference<?> |
reference
The reference currently used by this handler. |
| Constructor Summary | |
|---|---|
ReferenceInvocationHandler(Reference<?> reference)
Constructor, which creates this handler. |
|
| Method Summary | |
|---|---|
Object |
invoke(Object proxy,
Method method,
Object[] arguments)
|
String |
toString()
Returns the string representation of this handler. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private Reference<?> reference
Never null.
| Constructor Detail |
|---|
public ReferenceInvocationHandler(Reference<?> reference)
reference - The original reference to use; cannot be null.
NullPointerException - If reference is null.| Method Detail |
|---|
public Object invoke(Object proxy,
Method method,
Object[] arguments)
throws Throwable
invoke in interface InvocationHandlerThrowablepublic String toString()
toString in class Object
|
Gunni Rode / rode.dk | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||