|
||||||||||
| 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,
Class<T> target)
|
|
DefaultInvocationHandler(ReflectionProvider provider,
Object target)
|
|
| Method Summary | ||
|---|---|---|
ConstructorHandler<T> |
constructor()
Use this method to invoke a constructor using only arguments. |
|
|
constructor(Constructor<C> con)
Use this method to invoke a constructor using its instance. |
|
Object |
getterFor(Field field)
This is a convenience method for invoking getters that follow JavaBean notation |
|
Object |
getterFor(String fieldName)
This is a convenience method for invoking getters that follow JavaBean notation |
|
MethodHandler |
method(Method method)
Use this method to invoke a method using its instance. |
|
MethodHandler |
method(String methodName)
Use this method to invoke a method by its name. |
|
SetterMethodHandler |
setterFor(Field field)
This is a convenience method for invoking setters that follow JavaBean notation |
|
SetterMethodHandler |
setterFor(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,
Object target)
public DefaultInvocationHandler(ReflectionProvider provider,
Class<T> target)
| Method Detail |
|---|
public MethodHandler method(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(Method method)
InvocationHandler
method in interface InvocationHandler<T>method - Method to be invoked.
public <C> ConstructorHandler<C> constructor(Constructor<C> con)
InvocationHandler
constructor in interface InvocationHandler<T>con - Constructor to be invoked.
public Object getterFor(String fieldName)
InvocationHandler
getterFor in interface InvocationHandler<T>public Object getterFor(Field field)
InvocationHandler
getterFor in interface InvocationHandler<T>field - field associated with the getter
public SetterMethodHandler setterFor(String fieldName)
InvocationHandler
setterFor in interface InvocationHandler<T>public SetterMethodHandler setterFor(Field field)
InvocationHandler
setterFor in interface InvocationHandler<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||