|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Allows us to implement different versions of Proxies
Method Summary | |
InvocationHandler |
getInvocationHandler(Object proxy)
Returns the invocation handler for the specified proxy instance. |
void |
init(Properties props)
Prepares the ProxyFactory for use. |
boolean |
isProxyClass(Class cl)
Returns true if and only if the specified class was dynamically generated to be a proxy class using the getProxyClass method or the newProxyInstance method. |
Object |
newProxyInstance(Class[] interfaces,
InvocationHandler h,
ClassLoader classLoader)
Returns an instance of a proxy class for the specified interface that dispatches method invocations to the specified invocation handler. |
Object |
newProxyInstance(Class superClass,
Class[] interfaces,
InvocationHandler h,
ClassLoader classLoader)
|
Method Detail |
public void init(Properties props)
public InvocationHandler getInvocationHandler(Object proxy) throws IllegalArgumentException
IllegalArgumentException
public boolean isProxyClass(Class cl)
public Object newProxyInstance(Class[] interfaces, InvocationHandler h, ClassLoader classLoader) throws IllegalArgumentException
IllegalArgumentException
public Object newProxyInstance(Class superClass, Class[] interfaces, InvocationHandler h, ClassLoader classLoader) throws IllegalArgumentException
IllegalArgumentException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |