|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.vidageek.mirror.invoke.DefaultInvocationHandler<T>
public final class DefaultInvocationHandler<T>
This class is responsible for choosing between invocation of constructor or methods.
| Constructor Summary | |
|---|---|
DefaultInvocationHandler(ReflectionProvider provider,
java.lang.Class<T> target)
|
|
DefaultInvocationHandler(ReflectionProvider provider,
java.lang.Object target)
|
|
| Method Summary | ||
|---|---|---|
ConstructorHandler<T> |
constructor()
Use this method to invoke a constructor using only arguments. |
|
|
constructor(java.lang.reflect.Constructor<C> con)
Use this method to invoke a constructor using its instance. |
|
java.lang.Object |
getterFor(java.lang.reflect.Field field)
This is a convenience method for invoking getters that follow JavaBean notation |
|
java.lang.Object |
getterFor(java.lang.String fieldName)
This is a convenience method for invoking getters that follow JavaBean notation |
|
MethodHandler |
method(java.lang.reflect.Method method)
Use this method to invoke a method using its instance. |
|
MethodHandler |
method(java.lang.String methodName)
Use this method to invoke a method by its name. |
|
SetterMethodHandler |
setterFor(java.lang.reflect.Field field)
This is a convenience method for invoking setters that follow JavaBean notation |
|
SetterMethodHandler |
setterFor(java.lang.String fieldName)
This is a convenience method for invoking setters that follow JavaBean notation |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultInvocationHandler(ReflectionProvider provider,
java.lang.Object target)
public DefaultInvocationHandler(ReflectionProvider provider,
java.lang.Class<T> target)
| Method Detail |
|---|
public MethodHandler method(java.lang.String methodName)
InvocationHandler
method in interface InvocationHandler<T>methodName - name of the method to be invoked.
public ConstructorHandler<T> constructor()
InvocationHandler
constructor in interface InvocationHandler<T>public MethodHandler method(java.lang.reflect.Method method)
InvocationHandler
method in interface InvocationHandler<T>method - Method to be invoked.
public <C> ConstructorHandler<C> constructor(java.lang.reflect.Constructor<C> con)
InvocationHandler
constructor in interface InvocationHandler<T>con - Constructor to be invoked.
public java.lang.Object getterFor(java.lang.String fieldName)
InvocationHandler
getterFor in interface InvocationHandler<T>public java.lang.Object getterFor(java.lang.reflect.Field field)
InvocationHandler
getterFor in interface InvocationHandler<T>field - field associated with the getter
public SetterMethodHandler setterFor(java.lang.String fieldName)
InvocationHandler
setterFor in interface InvocationHandler<T>public SetterMethodHandler setterFor(java.lang.reflect.Field field)
InvocationHandler
setterFor in interface InvocationHandler<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||