org.hippoecm.hst.proxy
Class ProxyUtils

java.lang.Object
  extended by org.hippoecm.hst.proxy.ProxyUtils

public class ProxyUtils
extends Object

Utility class to create proxies.

Version:
$Id: ProxyUtils.java 17324 2009-04-17 10:20:50Z aschrijvers $

Method Summary
static Object createBeanAccessProviderProxy(ServiceBeanAccessProvider provider, Class... proxyInterfacesOrDelegateeClass)
          Creates and returns a dynamic proxy which invokes the underlying service bean access provider.
static Object createdUnsupportableProxyObject(Object target, Set<String> unsupportedMethodNames, Class... proxyInterfaces)
          Creates and returns a dynamic proxy which throws UnsupportedOperationException for some operations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createdUnsupportableProxyObject

public static Object createdUnsupportableProxyObject(Object target,
                                                     Set<String> unsupportedMethodNames,
                                                     Class... proxyInterfaces)
Creates and returns a dynamic proxy which throws UnsupportedOperationException for some operations. This can be useful if you create a proxy with some methods unsupported.

Parameters:
target - the proxied target object
unsupportedMethodNames -
proxyInterfaces - the interfaces the created proxy should implement
Returns:

createBeanAccessProviderProxy

public static Object createBeanAccessProviderProxy(ServiceBeanAccessProvider provider,
                                                   Class... proxyInterfacesOrDelegateeClass)
Creates and returns a dynamic proxy which invokes the underlying service bean access provider.

Parameters:
provider - the underlying service bean access provider
proxyInterfacesOrDelegateeClass - the interfaces the proxy should implement or delegatee class which may implement interface(s).
Returns:


Copyright © 2008-2012 Hippo. All Rights Reserved.