|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.reflexiveframework.proxy.Reflexive
public class Reflexive
Reflexive provides a clean way to handle string literals,
by dynamically resolving properties.
Create a control object by invoking create.
Only use with control objects. Usage with normal objects is unsupported.
| Method Summary | |
|---|---|
static java.lang.Object |
create(java.lang.Class clazz)
Creates a new control object. |
java.lang.Object |
intercept(java.lang.Object object,
java.lang.reflect.Method method,
java.lang.Object[] args,
net.sf.cglib.proxy.MethodProxy methodProxy)
|
static java.lang.String |
resolveNestedPropertyName(boolean value)
|
static java.lang.String |
resolveNestedPropertyName(double value)
|
static java.lang.String |
resolveNestedPropertyName(long value)
|
static java.lang.String |
resolveNestedPropertyName(java.lang.Object object)
Resolves the property from the method that was invoked. |
static java.lang.String |
resolvePropertyName(boolean number)
|
static java.lang.String |
resolvePropertyName(double number)
|
static java.lang.String |
resolvePropertyName(long number)
|
static java.lang.String |
resolvePropertyName(java.lang.Object object)
Resolves the property from the method that was invoked. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.Object create(java.lang.Class clazz)
clazz -
public static java.lang.String resolvePropertyName(java.lang.Object object)
Reflexive.resolvePropertyName(myObject.getMyProperty())
This would return myProperty
Only get- and is-methods are supported.
object - The returned object after invoking the created reflexive
object
public static java.lang.String resolvePropertyName(long number)
number - the number to process
resolvePropertyName(Object)public static java.lang.String resolvePropertyName(double number)
number - the number to process
resolvePropertyName(Object)public static java.lang.String resolvePropertyName(boolean number)
number - the number to process
resolvePropertyName(Object)public static java.lang.String resolveNestedPropertyName(java.lang.Object object)
Reflexive.resolveNestedPropertyName(myObject.getMyProperty().myNestedProperty())
This would return myProperty.myNestedProperty
Only get- and is-methods are supported.
object - The returned object after invoking the created reflexive
object
public static java.lang.String resolveNestedPropertyName(long value)
value - the returned value after the invocation
resolveNestedPropertyName(Object)public static java.lang.String resolveNestedPropertyName(double value)
value - the returned value after the invocation
resolveNestedPropertyName(Object)public static java.lang.String resolveNestedPropertyName(boolean value)
value - the returned value after the invocation
resolveNestedPropertyName(Object)
public java.lang.Object intercept(java.lang.Object object,
java.lang.reflect.Method method,
java.lang.Object[] args,
net.sf.cglib.proxy.MethodProxy methodProxy)
throws java.lang.Throwable
intercept in interface net.sf.cglib.proxy.MethodInterceptorjava.lang.Throwable#intercept(java.lang.Object,
java.lang.reflect.Method, java.lang.Object[],
net.sf.cglib.proxy.MethodProxy)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||