Class ProxyFrameworkImpl
- java.lang.Object
-
- org.powermock.api.extension.proxyframework.ProxyFrameworkImpl
-
- All Implemented Interfaces:
ProxyFramework
public class ProxyFrameworkImpl extends java.lang.Object implements ProxyFramework
CGLib proxy framework setup.
-
-
Constructor Summary
Constructors Constructor Description ProxyFrameworkImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
getUnproxiedType(java.lang.Class<?> type)
Check if the class is a proxy and if it is return the unproxied type.boolean
isProxy(java.lang.Class<?> type)
-
-
-
Method Detail
-
getUnproxiedType
public java.lang.Class<?> getUnproxiedType(java.lang.Class<?> type)
Check if the class is a proxy and if it is return the unproxied type.- Specified by:
getUnproxiedType
in interfaceProxyFramework
- Parameters:
type
- The class to check.- Returns:
- The unproxied class type.
-
isProxy
public boolean isProxy(java.lang.Class<?> type)
- Specified by:
isProxy
in interfaceProxyFramework
- Returns:
true
if type is a proxy,false
otherwise.
-
-