org.jboss.webbeans.util
Class Proxies

java.lang.Object
  extended by org.jboss.webbeans.util.Proxies

public class Proxies
extends java.lang.Object

Utilties for working with Javassist proxies

Author:
Nicklas Karlsson, Pete Muir

Nested Class Summary
static class Proxies.TypeInfo
           
 
Constructor Summary
Proxies()
           
 
Method Summary
static javassist.util.proxy.ProxyFactory getProxyFactory(java.util.Set<java.lang.reflect.Type> types)
          Get the proxy factory for the given set of types
static boolean isClassProxyable(java.lang.Class<?> clazz)
          Inidicates if a class is proxyable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Proxies

public Proxies()
Method Detail

getProxyFactory

public static javassist.util.proxy.ProxyFactory getProxyFactory(java.util.Set<java.lang.reflect.Type> types)
Get the proxy factory for the given set of types

Parameters:
types - The types to create the proxy factory for
classes - Additional interfaces the proxy should implement
Returns:
the proxy factory

isClassProxyable

public static boolean isClassProxyable(java.lang.Class<?> clazz)
Inidicates if a class is proxyable

Parameters:
clazz - The class to test
Returns:
True if proxyable, false otherwise


Copyright © 2008-2009. All Rights Reserved.