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 isTypeProxyable(java.lang.reflect.Type type)
          Indicates if a class is proxyable
static boolean isTypesProxyable(java.lang.Iterable<? extends java.lang.reflect.Type> types)
          Indicates if a set of types are all 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

isTypeProxyable

public static boolean isTypeProxyable(java.lang.reflect.Type type)
Indicates if a class is proxyable

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

isTypesProxyable

public static boolean isTypesProxyable(java.lang.Iterable<? extends java.lang.reflect.Type> types)
Indicates if a set of types are all proxyable

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


Copyright © 2011. All Rights Reserved.