|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.myfaces.extensions.validator.core.proxy.DefaultProxyHelper
public class DefaultProxyHelper
Supports CGLIB and javassist.
Field Summary | |
---|---|
protected Logger |
logger
|
Constructor Summary | |
---|---|
DefaultProxyHelper()
|
Method Summary | ||
---|---|---|
String |
getClassNameOfObject(Object object)
Returns the original fully qualified class-name for the given object which might be a proxied instance. |
|
String |
getNameOfClass(Class currentClass)
Returns the original fully qualified class-name for the given class which might be the class of a proxied instance. |
|
Class |
getUnproxiedClass(Class currentClass)
Returns the original class for the given class which might be the class of a proxied instance. |
|
|
getUnproxiedClass(Class currentClass,
Class<T> targetType)
In addition to ProxyHelper#getUnproxiedClass(java.lang.Class) it casts to the given type. |
|
boolean |
isProxiedClass(Class currentClass)
Checks if the given class is a class of a proxied instance. |
|
boolean |
isProxiedObject(Object proxiedObject)
Checks if the given instance is proxied. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Logger logger
Constructor Detail |
---|
public DefaultProxyHelper()
Method Detail |
---|
public <T> Class<T> getUnproxiedClass(Class currentClass, Class<T> targetType)
ProxyHelper
getUnproxiedClass
in interface ProxyHelper
T
- Type declaration for generics.currentClass
- class of proxy instance or any regular class.targetType
- target class type
ProxyHelper.getUnproxiedClass(java.lang.Class)
public Class getUnproxiedClass(Class currentClass)
ProxyHelper
getUnproxiedClass
in interface ProxyHelper
currentClass
- class of proxy instance or any regular class.
public String getNameOfClass(Class currentClass)
ProxyHelper
getNameOfClass
in interface ProxyHelper
currentClass
- class of proxy instance or any regular class.
public String getClassNameOfObject(Object object)
ProxyHelper
getClassNameOfObject
in interface ProxyHelper
object
- proxy instance or any regular object.
public boolean isProxiedClass(Class currentClass)
ProxyHelper
isProxiedClass
in interface ProxyHelper
currentClass
- proxy class to check.
public boolean isProxiedObject(Object proxiedObject)
ProxyHelper
isProxiedObject
in interface ProxyHelper
proxiedObject
- object to check.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |