org.apache.webbeans.proxy.javassist
Class JavassistFactory

java.lang.Object
  extended by org.apache.webbeans.proxy.javassist.JavassistFactory
All Implemented Interfaces:
Factory

public class JavassistFactory
extends Object
implements Factory

Version:
$Rev$ $Date$

Nested Class Summary
static class JavassistFactory.FinalizeMethodFilter
           
protected static class JavassistFactory.PrivilegedActionForProxyFactory
           
 
Constructor Summary
JavassistFactory()
           
 
Method Summary
 Object createProxy(Class<?> proxyClass)
           
 Object createProxy(MethodHandler handler, Class<?>[] interfaces)
           
 Class<?> getProxyClass(Class<?> superClass, Class<?>[] interfaces)
           
 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
 

Constructor Detail

JavassistFactory

public JavassistFactory()
Method Detail

getProxyClass

public Class<?> getProxyClass(Class<?> superClass,
                              Class<?>[] interfaces)
Specified by:
getProxyClass in interface Factory

createProxy

public Object createProxy(Class<?> proxyClass)
                   throws InstantiationException,
                          IllegalAccessException
Specified by:
createProxy in interface Factory
Throws:
InstantiationException
IllegalAccessException

isProxyInstance

public boolean isProxyInstance(Object o)
Specified by:
isProxyInstance in interface Factory
Parameters:
o - the object to check
Returns:
true if the given object is a proxy

createProxy

public Object createProxy(MethodHandler handler,
                          Class<?>[] interfaces)
                   throws InstantiationException,
                          IllegalAccessException
Specified by:
createProxy in interface Factory
Throws:
InstantiationException
IllegalAccessException

setHandler

public void setHandler(Object proxy,
                       MethodHandler handler)
Specified by:
setHandler in interface Factory


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.