org.apache.webbeans.proxy
Class ProxyFactory
java.lang.Object
org.apache.webbeans.proxy.ProxyFactory
public final class ProxyFactory
- extends Object
|
Method Summary |
void |
clear()
|
Class<?> |
createAbstractDecoratorProxyClass(OwbBean<?> bean)
|
Object |
createBuildInBeanProxy(OwbBean<?> bean)
|
Object |
createDecoratorDelegate(OwbBean<?> bean,
DelegateHandler newDelegateHandler)
|
Object |
createDependentScopedBeanProxy(OwbBean<?> bean,
Object actualInstance,
javax.enterprise.context.spi.CreationalContext<?> creastionalContext)
|
Object |
createNormalScopedBeanProxy(OwbBean<?> bean,
javax.enterprise.context.spi.CreationalContext<?> creationalContext)
|
Object |
createProxy(MethodHandler handler,
Class<?>[] interfaces)
|
Class<?> |
createProxyClass(OwbBean<?> bean)
|
Class<?> |
getEjbBeanProxyClass(OwbBean<?> bean,
Class<?> iface)
Provides the proxy for the given bean and interface, if defined |
Map<OwbBean<?>,Class<?>> |
getInterceptorProxyClasses()
|
Class<?> |
getResourceBeanProxyClass(ResourceBean<?,?> resourceBean)
|
boolean |
isProxyInstance(Object o)
|
void |
setHandler(Object proxy,
MethodHandler handler)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProxyFactory
public ProxyFactory()
ProxyFactory
public ProxyFactory(Factory factory)
setHandler
public void setHandler(Object proxy,
MethodHandler handler)
getInterceptorProxyClasses
public Map<OwbBean<?>,Class<?>> getInterceptorProxyClasses()
clear
public void clear()
getEjbBeanProxyClass
public Class<?> getEjbBeanProxyClass(OwbBean<?> bean,
Class<?> iface)
- Provides the proxy for the given bean and interface, if defined
- Parameters:
bean - the contextual representing the EJBiface - the injected business local interface
- Returns:
- the proxy Class if one has been defined, else null
createDecoratorDelegate
public Object createDecoratorDelegate(OwbBean<?> bean,
DelegateHandler newDelegateHandler)
throws Exception
- Throws:
Exception
getResourceBeanProxyClass
public Class<?> getResourceBeanProxyClass(ResourceBean<?,?> resourceBean)
createNormalScopedBeanProxy
public Object createNormalScopedBeanProxy(OwbBean<?> bean,
javax.enterprise.context.spi.CreationalContext<?> creationalContext)
createBuildInBeanProxy
public Object createBuildInBeanProxy(OwbBean<?> bean)
createDependentScopedBeanProxy
public Object createDependentScopedBeanProxy(OwbBean<?> bean,
Object actualInstance,
javax.enterprise.context.spi.CreationalContext<?> creastionalContext)
createProxyClass
public Class<?> createProxyClass(OwbBean<?> bean)
createAbstractDecoratorProxyClass
public Class<?> createAbstractDecoratorProxyClass(OwbBean<?> bean)
isProxyInstance
public boolean isProxyInstance(Object o)
createProxy
public Object createProxy(MethodHandler handler,
Class<?>[] interfaces)
throws IllegalAccessException,
InstantiationException
- Throws:
IllegalAccessException
InstantiationException
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.