public class ProxyFactoryImpl extends Object implements ProxyFactory, org.fabric3.spi.builder.classloader.ClassLoaderListener
| Constructor and Description |
|---|
ProxyFactoryImpl(org.fabric3.spi.classloader.ClassLoaderRegistry classLoaderRegistry) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
createProxy(URI classLoaderKey,
Class<T> interfaze,
Method[] methods,
Class<? extends ProxyDispatcher> dispatcher,
boolean wrapped)
Creates a proxy.
|
void |
onDeploy(ClassLoader classLoader) |
void |
onUndeploy(ClassLoader classLoader) |
public ProxyFactoryImpl(org.fabric3.spi.classloader.ClassLoaderRegistry classLoaderRegistry)
public <T> T createProxy(URI classLoaderKey, Class<T> interfaze, Method[] methods, Class<? extends ProxyDispatcher> dispatcher, boolean wrapped) throws ProxyException
ProxyFactorycreateProxy in interface ProxyFactoryclassLoaderKey - the key of the classloader the proxy is to be created forinterfaze - the proxy interfacemethods - the sorted list of proxy methods. If multiple proxies are created for a classloader, method order must be the same as proxy
bytecode is cached.dispatcher - the dispatcher the proxy extendswrapped - true if parameters should be wrapped in an array as JDK proxy invocations areProxyException - if there is an error creating the proxypublic void onDeploy(ClassLoader classLoader)
onDeploy in interface org.fabric3.spi.builder.classloader.ClassLoaderListenerpublic void onUndeploy(ClassLoader classLoader)
onUndeploy in interface org.fabric3.spi.builder.classloader.ClassLoaderListenerCopyright © 2007-2013 Metaform Systems.