public class ProxyFactory extends Object
| Constructor and Description |
|---|
ProxyFactory() |
| Modifier and Type | Method and Description |
|---|---|
Object |
createProxy(Object instance,
Class<?>... ifaces)
Get a proxy to an instance.
|
<T> T |
createProxy(T instance,
Class<T> iface)
Get a proxy to an instance.
|
public <T> T createProxy(T instance,
Class<T> iface)
T - The interface to interceptinstance - A reference to a non-CDI object which needs interceptioniface - The interface which will be interceptedpublic Object createProxy(Object instance, Class<?>... ifaces)
instance - A reference to a non-CDI object which needs interceptionifaces - The interfaces which will be interceptedCopyright © 2017. All rights reserved.