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 WeldInjectionPointAttributes<?,?> |
findDelegateInjectionPoint(javax.enterprise.inject.spi.AnnotatedType<?> type,
Iterable<javax.enterprise.inject.spi.InjectionPoint> injectionPoints) |
static Set<InvokableAnnotatedMethod<?>> |
getDecoratorMethods(BeanManagerImpl beanManager,
WeldDecorator<?> decorator)
Determines the set of
InvokableAnnotatedMethod s representing decorated methods of the specified decorator. |
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 boolean |
isPassivationCapable(javax.enterprise.inject.spi.Decorator<?> decorator)
Indicates whether a
Decorator is passivation capable or not. |
public static Set<InvokableAnnotatedMethod<?>> getDecoratorMethods(BeanManagerImpl beanManager, WeldDecorator<?> decorator)
InvokableAnnotatedMethod
s 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 decoratorInvokableAnnotatedMethod
s representing decorated methods of the specified decoratorpublic 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 © 2016. All rights reserved.