public class Jdk13ProxyFactory extends java.lang.Object implements ProxyFactory
Constructor and Description |
---|
Jdk13ProxyFactory() |
Modifier and Type | Method and Description |
---|---|
InvocationHandler |
getInvocationHandler(java.lang.Object proxy) |
java.lang.Class |
getProxyClass(java.lang.Class interfce) |
java.lang.Class |
getProxyClass(java.lang.Class[] interfaces) |
void |
init(java.util.Properties props) |
boolean |
isProxyClass(java.lang.Class cl) |
java.lang.Object |
newProxyInstance(java.lang.Class proxyClass) |
java.lang.Object |
newProxyInstance(java.lang.Class[] interfaces,
InvocationHandler h) |
java.lang.Object |
newProxyInstance(java.lang.Class interfce,
InvocationHandler h) |
java.lang.Object |
setInvocationHandler(java.lang.Object proxy,
InvocationHandler handler) |
public void init(java.util.Properties props)
init
in interface ProxyFactory
public InvocationHandler getInvocationHandler(java.lang.Object proxy) throws java.lang.IllegalArgumentException
getInvocationHandler
in interface ProxyFactory
java.lang.IllegalArgumentException
public java.lang.Object setInvocationHandler(java.lang.Object proxy, InvocationHandler handler) throws java.lang.IllegalArgumentException
setInvocationHandler
in interface ProxyFactory
java.lang.IllegalArgumentException
public java.lang.Class getProxyClass(java.lang.Class interfce) throws java.lang.IllegalArgumentException
getProxyClass
in interface ProxyFactory
java.lang.IllegalArgumentException
public java.lang.Class getProxyClass(java.lang.Class[] interfaces) throws java.lang.IllegalArgumentException
getProxyClass
in interface ProxyFactory
java.lang.IllegalArgumentException
public boolean isProxyClass(java.lang.Class cl)
isProxyClass
in interface ProxyFactory
public java.lang.Object newProxyInstance(java.lang.Class proxyClass) throws java.lang.IllegalArgumentException
newProxyInstance
in interface ProxyFactory
java.lang.IllegalArgumentException
public java.lang.Object newProxyInstance(java.lang.Class interfce, InvocationHandler h) throws java.lang.IllegalArgumentException
newProxyInstance
in interface ProxyFactory
java.lang.IllegalArgumentException
public java.lang.Object newProxyInstance(java.lang.Class[] interfaces, InvocationHandler h) throws java.lang.IllegalArgumentException
newProxyInstance
in interface ProxyFactory
java.lang.IllegalArgumentException