Package org.jboss.weld.util
Class Proxies
java.lang.Object
org.jboss.weld.util.Proxies
Utilities for working with proxies.
- Author:
- Nicklas Karlsson, Pete Muir, Tomaz Cerar, Ales Justin
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectgetDeclaringBeanInfo(jakarta.enterprise.inject.spi.Bean<?> bean) getUnproxyableTypeException(Type type, jakarta.enterprise.inject.spi.Bean<?> declaringBean, org.jboss.weld.bootstrap.api.ServiceRegistry services, boolean ignoreFinalMethods) getUnproxyableTypeException(Type type, org.jboss.weld.bootstrap.api.ServiceRegistry services) getUnproxyableTypesException(jakarta.enterprise.inject.spi.Bean<?> declaringBean, org.jboss.weld.bootstrap.api.ServiceRegistry services) getUnproxyableTypesException(Iterable<? extends Type> types, org.jboss.weld.bootstrap.api.ServiceRegistry services) static booleanisTypeProxyable(Type type, org.jboss.weld.bootstrap.api.ServiceRegistry services) Indicates if a class is proxyablestatic booleanisTypesProxyable(jakarta.enterprise.inject.spi.Bean<?> declaringBean, org.jboss.weld.bootstrap.api.ServiceRegistry services) Indicates if a set of types are all proxyablestatic booleanisTypesProxyable(Iterable<? extends Type> types, org.jboss.weld.bootstrap.api.ServiceRegistry services) Indicates if a set of types are all proxyablestatic LinkedHashSet<Class<?>>sortInterfacesHierarchy(Set<Class<?>> interfaces)
-
Method Details
-
isTypeProxyable
public static boolean isTypeProxyable(Type type, org.jboss.weld.bootstrap.api.ServiceRegistry services) Indicates if a class is proxyable- Parameters:
type- The class to test- Returns:
- True if proxyable, false otherwise
-
getUnproxyableTypeException
public static UnproxyableResolutionException getUnproxyableTypeException(Type type, org.jboss.weld.bootstrap.api.ServiceRegistry services) -
isTypesProxyable
public static boolean isTypesProxyable(jakarta.enterprise.inject.spi.Bean<?> declaringBean, org.jboss.weld.bootstrap.api.ServiceRegistry services) Indicates if a set of types are all proxyable- Parameters:
declaringBean- with types to test- Returns:
- True if proxyable, false otherwise
-
isTypesProxyable
public static boolean isTypesProxyable(Iterable<? extends Type> types, org.jboss.weld.bootstrap.api.ServiceRegistry services) Indicates if a set of types are all proxyable- Parameters:
types- The types to test- Returns:
- True if proxyable, false otherwise
-
getUnproxyableTypesException
public static UnproxyableResolutionException getUnproxyableTypesException(jakarta.enterprise.inject.spi.Bean<?> declaringBean, org.jboss.weld.bootstrap.api.ServiceRegistry services) -
getUnproxyableTypesException
public static UnproxyableResolutionException getUnproxyableTypesException(Iterable<? extends Type> types, org.jboss.weld.bootstrap.api.ServiceRegistry services) -
getUnproxyableTypeException
public static UnproxyableResolutionException getUnproxyableTypeException(Type type, jakarta.enterprise.inject.spi.Bean<?> declaringBean, org.jboss.weld.bootstrap.api.ServiceRegistry services, boolean ignoreFinalMethods) -
getDeclaringBeanInfo
-
sortInterfacesHierarchy
- Parameters:
interfaces-- Returns:
- the sorted set of interfaces
-