public class BeanProxyHandler<T>
extends java.lang.Object
implements javassist.util.proxy.MethodHandler, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
_cache |
protected java.util.Set<java.lang.String> |
_dirtyFieldNames |
protected T |
_origin |
protected static javassist.util.proxy.MethodFilter |
BEAN_METHOD_FILTER |
Constructor and Description |
---|
BeanProxyHandler(T origin) |
Modifier and Type | Method and Description |
---|---|
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) |
protected static javassist.util.proxy.MethodFilter BEAN_METHOD_FILTER
protected T _origin
protected java.util.Map<java.lang.String,java.lang.Object> _cache
protected java.util.Set<java.lang.String> _dirtyFieldNames
public BeanProxyHandler(T origin)
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
invoke
in interface javassist.util.proxy.MethodHandler
java.lang.Exception
protected static java.lang.String toSetter(java.lang.String attr)
protected static java.lang.String toGetter(java.lang.String attr)
protected static java.lang.String capitalize(java.lang.String prefix, java.lang.String attr)
protected static java.lang.String toAttrName(java.lang.reflect.Method method, int prefix)
protected static java.lang.String toAttrName(java.lang.reflect.Method method)
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.