public class Decorators
extends java.lang.Object
Decorator inspections.| Modifier and Type | Method and Description |
|---|---|
static <T> void |
checkAbstractMethods(java.util.Set<java.lang.reflect.Type> decoratedTypes,
EnhancedAnnotatedType<T> type,
BeanManagerImpl beanManager)
Check all abstract methods are declared by the decorated types.
|
static void |
checkDelegateType(Decorator<?> decorator)
Check whether the delegate type implements or extends all decorated types.
|
static WeldInjectionPointAttributes<?,?> |
findDelegateInjectionPoint(AnnotatedType<?> type,
java.lang.Iterable<InjectionPoint> injectionPoints) |
static java.util.Set<InvokableAnnotatedMethod<?>> |
getDecoratorMethods(BeanManagerImpl beanManager,
WeldDecorator<?> decorator)
Determines the set of
InvokableAnnotatedMethods representing decorated methods of the specified decorator. |
static <T> T |
getOuterDelegate(Bean<T> bean,
T instance,
CreationalContext<T> creationalContext,
java.lang.Class<T> proxyClass,
InjectionPoint originalInjectionPoint,
BeanManagerImpl manager,
java.util.List<Decorator<?>> decorators) |
static boolean |
isPassivationCapable(Decorator<?> decorator)
Indicates whether a
Decorator is passivation capable or not. |
public static java.util.Set<InvokableAnnotatedMethod<?>> getDecoratorMethods(BeanManagerImpl beanManager, WeldDecorator<?> decorator)
InvokableAnnotatedMethods representing decorated methods of the specified decorator. A decorated method
is any method declared by a decorated type which is implemented by the decorator.beanManager - the bean managerdecorator - the specified decoratorInvokableAnnotatedMethods representing decorated methods of the specified decoratorpublic static WeldInjectionPointAttributes<?,?> findDelegateInjectionPoint(AnnotatedType<?> type, java.lang.Iterable<InjectionPoint> injectionPoints)
public static <T> T getOuterDelegate(Bean<T> bean, T instance, CreationalContext<T> creationalContext, java.lang.Class<T> proxyClass, InjectionPoint originalInjectionPoint, BeanManagerImpl manager, java.util.List<Decorator<?>> decorators)
public static void checkDelegateType(Decorator<?> decorator)
decorator - DefinitionException - If the delegate type doesn't implement or extend all decorated typespublic static <T> void checkAbstractMethods(java.util.Set<java.lang.reflect.Type> decoratedTypes,
EnhancedAnnotatedType<T> type,
BeanManagerImpl beanManager)
type - beanManager - delegateType - DefinitionException - If any of the abstract methods is not declared by the decorated typesCopyright © 2015. All Rights Reserved.