public abstract class AbstractSubclassingProxyFactory extends ProxyFactory
ProxyFactory which supports subclassing rather than merely implementing interfaces.| Constructor and Description |
|---|
AbstractSubclassingProxyFactory() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canProxy(Class[] proxyClasses)
Returns true if a suitable superclass can be found, given the desired
proxyClasses. |
static Class |
getSuperclass(Class[] proxyClasses)
Returns either
Object if all of the proxyClasses are interfaces or the single non-interface
class from proxyClasses. |
protected static Class[] |
toInterfaces(Class[] proxyClasses)
Returns the
proxyClasses transformed into an array of only the interface classes. |
createDelegatorProxy, createDelegatorProxy, createInterceptorProxy, createInterceptorProxy, createInvokerProxy, createInvokerProxyprotected static Class[] toInterfaces(Class[] proxyClasses)
proxyClasses transformed into an array of only the interface classes.proxyClasses - the proxy classesproxyClasses transformed into an array of only the interface classespublic boolean canProxy(Class[] proxyClasses)
proxyClasses.canProxy in class ProxyFactoryproxyClasses - the proxy classesproxyClassespublic static Class getSuperclass(Class[] proxyClasses)
Object if all of the proxyClasses are interfaces or the single non-interface
class from proxyClasses.proxyClasses - the proxy classesObject if all of the proxyClasses are interfaces or the single non-interface
class from proxyClassesProxyFactoryException - if multiple non-interface classes are contained in proxyClasses or any
of the non-interface classes are finalCopyright © 2005-2013 Apache Software Foundation. All Rights Reserved.