Modifier and Type | Method and Description |
---|---|
static <T> void |
checkAbstractMethods(Set<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 <T> InvokableAnnotatedMethod<?> |
findDecoratorMethod(WeldDecorator<T> decorator,
Map<MethodSignature,InvokableAnnotatedMethod<?>> decoratorMethods,
Method method) |
static WeldInjectionPointAttributes<?,?> |
findDelegateInjectionPoint(AnnotatedType<?> type,
Iterable<InjectionPoint> injectionPoints) |
static List<EnhancedAnnotatedMethod<?,?>> |
getDecoratedMethods(BeanManagerImpl beanManager,
Set<Type> decoratedTypes) |
static Map<MethodSignature,InvokableAnnotatedMethod<?>> |
getDecoratorMethods(BeanManagerImpl beanManager,
Set<Type> decoratedTypes,
EnhancedAnnotatedType<?> decoratorClass) |
static <T> T |
getOuterDelegate(Bean<T> bean,
T instance,
CreationalContext<T> creationalContext,
Class<T> proxyClass,
InjectionPoint originalInjectionPoint,
BeanManagerImpl manager,
List<Decorator<?>> decorators) |
static EnhancedAnnotatedType<?> |
getWeldClassOfDecoratedType(BeanManagerImpl beanManager,
Type type) |
static boolean |
isPassivationCapable(Decorator<?> decorator)
Indicates whether a
Decorator is passivation capable or not. |
public static Map<MethodSignature,InvokableAnnotatedMethod<?>> getDecoratorMethods(BeanManagerImpl beanManager, Set<Type> decoratedTypes, EnhancedAnnotatedType<?> decoratorClass)
public static List<EnhancedAnnotatedMethod<?,?>> getDecoratedMethods(BeanManagerImpl beanManager, Set<Type> decoratedTypes)
public static EnhancedAnnotatedType<?> getWeldClassOfDecoratedType(BeanManagerImpl beanManager, Type type)
public static <T> InvokableAnnotatedMethod<?> findDecoratorMethod(WeldDecorator<T> decorator, Map<MethodSignature,InvokableAnnotatedMethod<?>> decoratorMethods, Method method)
public static WeldInjectionPointAttributes<?,?> findDelegateInjectionPoint(AnnotatedType<?> type, Iterable<InjectionPoint> injectionPoints)
public static <T> T getOuterDelegate(Bean<T> bean, T instance, CreationalContext<T> creationalContext, Class<T> proxyClass, InjectionPoint originalInjectionPoint, BeanManagerImpl manager, 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(Set<Type> decoratedTypes, EnhancedAnnotatedType<T> type, BeanManagerImpl beanManager)
type
- beanManager
- delegateType
- DefinitionException
- If any of the abstract methods is not declared by the decorated typesCopyright © 2013 Seam Framework. All Rights Reserved.