public class Decorators extends Object
Decorator
inspections.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(javax.enterprise.inject.spi.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(javax.enterprise.inject.spi.AnnotatedType<?> type,
Iterable<javax.enterprise.inject.spi.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(javax.enterprise.inject.spi.Bean<T> bean,
T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext,
Class<T> proxyClass,
javax.enterprise.inject.spi.InjectionPoint originalInjectionPoint,
BeanManagerImpl manager,
List<javax.enterprise.inject.spi.Decorator<?>> decorators) |
static EnhancedAnnotatedType<?> |
getWeldClassOfDecoratedType(BeanManagerImpl beanManager,
Type type) |
static boolean |
isPassivationCapable(javax.enterprise.inject.spi.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(javax.enterprise.inject.spi.AnnotatedType<?> type, Iterable<javax.enterprise.inject.spi.InjectionPoint> injectionPoints)
public static <T> T getOuterDelegate(javax.enterprise.inject.spi.Bean<T> bean, T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext, Class<T> proxyClass, javax.enterprise.inject.spi.InjectionPoint originalInjectionPoint, BeanManagerImpl manager, List<javax.enterprise.inject.spi.Decorator<?>> decorators)
public static void checkDelegateType(javax.enterprise.inject.spi.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 typespublic static boolean isPassivationCapable(javax.enterprise.inject.spi.Decorator<?> decorator)
Decorator
is passivation capable or not.Copyright © 2013 Seam Framework. All rights reserved.