org.zkoss.bind.proxy
Class BeanProxyHandler<T>
java.lang.Object
org.zkoss.bind.proxy.BeanProxyHandler<T>
- All Implemented Interfaces:
- java.io.Serializable, javassist.util.proxy.MethodHandler
- Direct Known Subclasses:
- FormProxyHandler
public class BeanProxyHandler<T>
- extends java.lang.Object
- implements javassist.util.proxy.MethodHandler, java.io.Serializable
A bean proxy handler
- Since:
- 8.0.0
- Author:
- jumperchen
- See Also:
- Serialized Form
Method Summary |
protected static java.lang.String |
capitalize(java.lang.String prefix,
java.lang.String attr)
|
java.lang.Object |
invoke(java.lang.Object self,
java.lang.reflect.Method method,
java.lang.reflect.Method proceed,
java.lang.Object[] args)
|
protected static java.lang.String |
toAttrName(java.lang.reflect.Method method)
|
protected static java.lang.String |
toAttrName(java.lang.reflect.Method method,
int prefix)
|
protected static java.lang.String |
toGetter(java.lang.String attr)
|
protected static java.lang.String |
toSetter(java.lang.String attr)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BEAN_METHOD_FILTER
protected static javassist.util.proxy.MethodFilter BEAN_METHOD_FILTER
_origin
protected T _origin
_cache
protected java.util.Map<java.lang.String,java.lang.Object> _cache
_dirtyFieldNames
protected java.util.Set<java.lang.String> _dirtyFieldNames
BeanProxyHandler
public BeanProxyHandler(T origin)
invoke
public java.lang.Object invoke(java.lang.Object self,
java.lang.reflect.Method method,
java.lang.reflect.Method proceed,
java.lang.Object[] args)
throws java.lang.Exception
- Specified by:
invoke
in interface javassist.util.proxy.MethodHandler
- Throws:
java.lang.Exception
toSetter
protected static java.lang.String toSetter(java.lang.String attr)
toGetter
protected static java.lang.String toGetter(java.lang.String attr)
capitalize
protected static java.lang.String capitalize(java.lang.String prefix,
java.lang.String attr)
toAttrName
protected static java.lang.String toAttrName(java.lang.reflect.Method method,
int prefix)
toAttrName
protected static java.lang.String toAttrName(java.lang.reflect.Method method)
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.