org.powermock.api.extension.proxyframework
Class ProxyFrameworkImpl

java.lang.Object
  extended by org.powermock.api.extension.proxyframework.ProxyFrameworkImpl
All Implemented Interfaces:
ProxyFramework

public class ProxyFrameworkImpl
extends Object
implements ProxyFramework

CGLib proxy framework setup.


Constructor Summary
ProxyFrameworkImpl()
           
 
Method Summary
 Class<?> getUnproxiedType(Class<?> type)
          Check if the class is a proxy and if it is return the unproxied type.
 boolean isProxy(Class<?> type)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyFrameworkImpl

public ProxyFrameworkImpl()
Method Detail

getUnproxiedType

public Class<?> getUnproxiedType(Class<?> type)
Check if the class is a proxy and if it is return the unproxied type.

Specified by:
getUnproxiedType in interface ProxyFramework
Parameters:
type - The class to check.
Returns:
The unproxied class type.

isProxy

public boolean isProxy(Class<?> type)

Specified by:
isProxy in interface ProxyFramework
Returns:
true if type is a proxy, false otherwise.


Copyright © 2007-2012. All Rights Reserved.