public class ProxyUtils extends Object
Modifier and Type | Method and Description |
---|---|
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. |
public static Object createdUnsupportableProxyObject(Object target, Set<String> unsupportedMethodNames, Class... proxyInterfaces)
UnsupportedOperationException
for some operations.
This can be useful if you create a proxy with some methods unsupported.target
- the proxied target objectunsupportedMethodNames
- proxyInterfaces
- the interfaces the created proxy should implementpublic static Object createBeanAccessProviderProxy(ServiceBeanAccessProvider provider, Class... proxyInterfacesOrDelegateeClass)
provider
- the underlying service bean access providerproxyInterfacesOrDelegateeClass
- the interfaces the proxy should implement or delegatee class which may implement interface(s).Copyright © 2008-2013 Hippo B.V. (http://www.onehippo.com). All Rights Reserved.