public interface ProxyManager
Modifier and Type | Method and Description |
---|---|
Object |
createProxy(org.osgi.framework.Bundle clientBundle,
Collection<Class<?>> classes,
Callable<Object> dispatcher) |
Object |
createProxy(org.osgi.framework.Bundle clientBundle,
Collection<Class<?>> classes,
Callable<Object> dispatcher,
InvocationHandlerWrapper wrapper) |
boolean |
isProxy(Object proxy)
Returns true if and only if the specified object was generated by a ProxyFactory returned by
a call to
ProxyManager#createProxyFactory(boolean) . |
Callable<Object> |
unwrap(Object proxy)
This method unwraps the provided proxy returning the target object.
|
Object createProxy(org.osgi.framework.Bundle clientBundle, Collection<Class<?>> classes, Callable<Object> dispatcher) throws UnableToProxyException
UnableToProxyException
Object createProxy(org.osgi.framework.Bundle clientBundle, Collection<Class<?>> classes, Callable<Object> dispatcher, InvocationHandlerWrapper wrapper) throws UnableToProxyException
UnableToProxyException
Callable<Object> unwrap(Object proxy)
proxy
- the proxy to unwrap.boolean isProxy(Object proxy)
ProxyManager#createProxyFactory(boolean)
.proxy
- The proxy object to testCopyright © 2016. All rights reserved.