org.apache.aries.proxy.impl
Class AbstractProxyManager

java.lang.Object
  extended by org.apache.aries.proxy.impl.AbstractProxyManager
All Implemented Interfaces:
ProxyManager
Direct Known Subclasses:
AsmProxyManager, JdkProxyManager

public abstract class AbstractProxyManager
extends Object
implements ProxyManager


Constructor Summary
AbstractProxyManager()
           
 
Method Summary
protected abstract  Object createNewProxy(org.osgi.framework.Bundle clientBundle, Collection<Class<?>> classes, InvocationHandler ih)
           
 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)
           
protected  ClassLoader getClassLoader(org.osgi.framework.Bundle clientBundle, Collection<Class<?>> classes)
           
protected abstract  InvocationHandler getInvocationHandler(Object proxy)
           
 boolean isProxy(Object proxy)
           
protected abstract  boolean isProxyClass(Class<?> clazz)
           
 Callable<Object> unwrap(Object proxy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractProxyManager

public AbstractProxyManager()
Method Detail

createProxy

public final Object createProxy(org.osgi.framework.Bundle clientBundle,
                                Collection<Class<?>> classes,
                                Callable<Object> dispatcher)
                         throws UnableToProxyException
Specified by:
createProxy in interface ProxyManager
Throws:
UnableToProxyException

createProxy

public final Object createProxy(org.osgi.framework.Bundle clientBundle,
                                Collection<Class<?>> classes,
                                Callable<Object> dispatcher,
                                InvocationHandlerWrapper wrapper)
                         throws UnableToProxyException
Specified by:
createProxy in interface ProxyManager
Throws:
UnableToProxyException

unwrap

public final Callable<Object> unwrap(Object proxy)
Specified by:
unwrap in interface ProxyManager

isProxy

public final boolean isProxy(Object proxy)
Specified by:
isProxy in interface ProxyManager

createNewProxy

protected abstract Object createNewProxy(org.osgi.framework.Bundle clientBundle,
                                         Collection<Class<?>> classes,
                                         InvocationHandler ih)
                                  throws UnableToProxyException
Throws:
UnableToProxyException

getInvocationHandler

protected abstract InvocationHandler getInvocationHandler(Object proxy)

isProxyClass

protected abstract boolean isProxyClass(Class<?> clazz)

getClassLoader

protected ClassLoader getClassLoader(org.osgi.framework.Bundle clientBundle,
                                     Collection<Class<?>> classes)


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.