|
Smartproxy 0.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ggtools.smartproxy.ProxyFactory
A factory to create proxified objects.
| Constructor Summary | |
protected |
ProxyFactory(String proxyClassName,
Class implementor,
Class baseInterface)
Constructor, create a new ProxyFactory object. |
| Method Summary | |
Object |
createProxy(Object[] arguments)
Instanciate a new proxy object. |
void |
dumpClass(String destDir)
Dump the current class to the specified directory. |
Class |
getBaseInterface()
Read accessor to baseInterface. |
String |
getBaseInterfaceName()
Read accessor to baseInterfaceName. |
Class |
getImplementor()
Read accessor to implementor. |
String |
getImplementorName()
Read accessor to implementorName. |
static ProxyFactory |
getInstance(Class implementor,
Class baseInterface)
Returns an instance of a proxy factory. |
Class |
getProxyClass()
Read accessor to proxyClass. |
String |
getProxyClassName()
Read accessor to proxyClassName. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected ProxyFactory(String proxyClassName,
Class implementor,
Class baseInterface)
implementor - the abstract class extended by the created class.baseInterface - the interface to be implemented.| Method Detail |
public static ProxyFactory getInstance(Class implementor,
Class baseInterface)
implementor - implementation class for the proxified objects.baseInterface - interface to implement.
ClassCastException - if implementor does not implements PROXIFIED_OBJECT_INTERFACE
or baseInterface
public Object createProxy(Object[] arguments)
throws SecurityException,
NoSuchMethodException,
IllegalArgumentException,
InstantiationException,
IllegalAccessException,
InvocationTargetException
arguments - the arguments to be passed to the constructor as an array of Object.
SecurityException
NoSuchMethodException
IllegalArgumentException
InstantiationException
IllegalAccessException
InvocationTargetException
public void dumpClass(String destDir)
throws IOException
destDir - the directory where the class will be dumped to.
IOException - when dump fails.public Class getBaseInterface()
baseInterface.
public String getBaseInterfaceName()
baseInterfaceName.
public Class getImplementor()
implementor.
public String getImplementorName()
implementorName.
public String getProxyClassName()
proxyClassName.
public Class getProxyClass()
proxyClass. Creates and load the class
if not already done.
|
Smartproxy 0.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||