Class NoopBeanManager
- java.lang.Object
-
- org.apache.tapestry5.internal.jpa.NoopBeanManager
-
- All Implemented Interfaces:
BeanManager
- Direct Known Subclasses:
TapestryCDIBeanManagerForJPAEntityListeners
public class NoopBeanManager extends java.lang.Object implements BeanManager
-
-
Constructor Summary
Constructors Constructor Description NoopBeanManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
areInterceptorBindingsEquivalent(java.lang.annotation.Annotation interceptorBinding1, java.lang.annotation.Annotation interceptorBinding2)
boolean
areQualifiersEquivalent(java.lang.annotation.Annotation qualifier1, java.lang.annotation.Annotation qualifier2)
<T> AnnotatedType<T>
createAnnotatedType(java.lang.Class<T> type)
<T> Bean<T>
createBean(BeanAttributes<T> attributes, java.lang.Class<T> beanClass, InjectionTargetFactory<T> injectionTargetFactory)
<T,X>
Bean<T>createBean(BeanAttributes<T> attributes, java.lang.Class<X> beanClass, ProducerFactory<X> producerFactory)
BeanAttributes<?>
createBeanAttributes(AnnotatedMember<?> type)
<T> BeanAttributes<T>
createBeanAttributes(AnnotatedType<T> type)
<T> CreationalContext<T>
createCreationalContext(Contextual<T> contextual)
InjectionPoint
createInjectionPoint(AnnotatedField<?> field)
InjectionPoint
createInjectionPoint(AnnotatedParameter<?> parameter)
<T> InjectionTarget<T>
createInjectionTarget(AnnotatedType<T> type)
void
fireEvent(java.lang.Object event, java.lang.annotation.Annotation... qualifiers)
java.util.Set<Bean<?>>
getBeans(java.lang.reflect.Type beanType, java.lang.annotation.Annotation... qualifiers)
java.util.Set<Bean<?>>
getBeans(java.lang.String name)
Context
getContext(java.lang.Class<? extends java.lang.annotation.Annotation> scopeType)
ELResolver
getELResolver()
<T extends Extension>
TgetExtension(java.lang.Class<T> extensionClass)
java.lang.Object
getInjectableReference(InjectionPoint ij, CreationalContext<?> ctx)
<T> InjectionTargetFactory<T>
getInjectionTargetFactory(AnnotatedType<T> annotatedType)
java.util.Set<java.lang.annotation.Annotation>
getInterceptorBindingDefinition(java.lang.Class<? extends java.lang.annotation.Annotation> bindingType)
int
getInterceptorBindingHashCode(java.lang.annotation.Annotation interceptorBinding)
Bean<?>
getPassivationCapableBean(java.lang.String id)
<X> ProducerFactory<X>
getProducerFactory(AnnotatedField<? super X> field, Bean<X> declaringBean)
<X> ProducerFactory<X>
getProducerFactory(AnnotatedMethod<? super X> method, Bean<X> declaringBean)
int
getQualifierHashCode(java.lang.annotation.Annotation qualifier)
java.lang.Object
getReference(Bean<?> bean, java.lang.reflect.Type beanType, CreationalContext<?> ctx)
java.util.Set<java.lang.annotation.Annotation>
getStereotypeDefinition(java.lang.Class<? extends java.lang.annotation.Annotation> stereotype)
boolean
isInterceptorBinding(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
boolean
isNormalScope(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
boolean
isPassivatingScope(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
boolean
isQualifier(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
boolean
isScope(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
boolean
isStereotype(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
<X> Bean<? extends X>
resolve(java.util.Set<Bean<? extends X>> beans)
java.util.List<Decorator<?>>
resolveDecorators(java.util.Set<java.lang.reflect.Type> types, java.lang.annotation.Annotation... qualifiers)
java.util.List<Interceptor<?>>
resolveInterceptors(InterceptionType type, java.lang.annotation.Annotation... interceptorBindings)
<T> java.util.Set<ObserverMethod<? super T>>
resolveObserverMethods(T event, java.lang.annotation.Annotation... qualifiers)
void
validate(InjectionPoint injectionPoint)
ExpressionFactory
wrapExpressionFactory(ExpressionFactory expressionFactory)
-
-
-
Constructor Detail
-
NoopBeanManager
public NoopBeanManager()
-
-
Method Detail
-
getReference
public java.lang.Object getReference(Bean<?> bean, java.lang.reflect.Type beanType, CreationalContext<?> ctx)
- Specified by:
getReference
in interfaceBeanManager
-
getInjectableReference
public java.lang.Object getInjectableReference(InjectionPoint ij, CreationalContext<?> ctx)
- Specified by:
getInjectableReference
in interfaceBeanManager
-
createCreationalContext
public <T> CreationalContext<T> createCreationalContext(Contextual<T> contextual)
- Specified by:
createCreationalContext
in interfaceBeanManager
-
getBeans
public java.util.Set<Bean<?>> getBeans(java.lang.reflect.Type beanType, java.lang.annotation.Annotation... qualifiers)
- Specified by:
getBeans
in interfaceBeanManager
-
getBeans
public java.util.Set<Bean<?>> getBeans(java.lang.String name)
- Specified by:
getBeans
in interfaceBeanManager
-
getPassivationCapableBean
public Bean<?> getPassivationCapableBean(java.lang.String id)
- Specified by:
getPassivationCapableBean
in interfaceBeanManager
-
resolve
public <X> Bean<? extends X> resolve(java.util.Set<Bean<? extends X>> beans)
- Specified by:
resolve
in interfaceBeanManager
-
validate
public void validate(InjectionPoint injectionPoint)
- Specified by:
validate
in interfaceBeanManager
-
fireEvent
public void fireEvent(java.lang.Object event, java.lang.annotation.Annotation... qualifiers)
- Specified by:
fireEvent
in interfaceBeanManager
-
resolveObserverMethods
public <T> java.util.Set<ObserverMethod<? super T>> resolveObserverMethods(T event, java.lang.annotation.Annotation... qualifiers)
- Specified by:
resolveObserverMethods
in interfaceBeanManager
-
resolveDecorators
public java.util.List<Decorator<?>> resolveDecorators(java.util.Set<java.lang.reflect.Type> types, java.lang.annotation.Annotation... qualifiers)
- Specified by:
resolveDecorators
in interfaceBeanManager
-
resolveInterceptors
public java.util.List<Interceptor<?>> resolveInterceptors(InterceptionType type, java.lang.annotation.Annotation... interceptorBindings)
- Specified by:
resolveInterceptors
in interfaceBeanManager
-
isScope
public boolean isScope(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
- Specified by:
isScope
in interfaceBeanManager
-
isNormalScope
public boolean isNormalScope(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
- Specified by:
isNormalScope
in interfaceBeanManager
-
isPassivatingScope
public boolean isPassivatingScope(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
- Specified by:
isPassivatingScope
in interfaceBeanManager
-
isQualifier
public boolean isQualifier(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
- Specified by:
isQualifier
in interfaceBeanManager
-
isInterceptorBinding
public boolean isInterceptorBinding(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
- Specified by:
isInterceptorBinding
in interfaceBeanManager
-
isStereotype
public boolean isStereotype(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
- Specified by:
isStereotype
in interfaceBeanManager
-
getInterceptorBindingDefinition
public java.util.Set<java.lang.annotation.Annotation> getInterceptorBindingDefinition(java.lang.Class<? extends java.lang.annotation.Annotation> bindingType)
- Specified by:
getInterceptorBindingDefinition
in interfaceBeanManager
-
getStereotypeDefinition
public java.util.Set<java.lang.annotation.Annotation> getStereotypeDefinition(java.lang.Class<? extends java.lang.annotation.Annotation> stereotype)
- Specified by:
getStereotypeDefinition
in interfaceBeanManager
-
areQualifiersEquivalent
public boolean areQualifiersEquivalent(java.lang.annotation.Annotation qualifier1, java.lang.annotation.Annotation qualifier2)
- Specified by:
areQualifiersEquivalent
in interfaceBeanManager
-
areInterceptorBindingsEquivalent
public boolean areInterceptorBindingsEquivalent(java.lang.annotation.Annotation interceptorBinding1, java.lang.annotation.Annotation interceptorBinding2)
- Specified by:
areInterceptorBindingsEquivalent
in interfaceBeanManager
-
getQualifierHashCode
public int getQualifierHashCode(java.lang.annotation.Annotation qualifier)
- Specified by:
getQualifierHashCode
in interfaceBeanManager
-
getInterceptorBindingHashCode
public int getInterceptorBindingHashCode(java.lang.annotation.Annotation interceptorBinding)
- Specified by:
getInterceptorBindingHashCode
in interfaceBeanManager
-
getContext
public Context getContext(java.lang.Class<? extends java.lang.annotation.Annotation> scopeType)
- Specified by:
getContext
in interfaceBeanManager
-
getELResolver
public ELResolver getELResolver()
- Specified by:
getELResolver
in interfaceBeanManager
-
wrapExpressionFactory
public ExpressionFactory wrapExpressionFactory(ExpressionFactory expressionFactory)
- Specified by:
wrapExpressionFactory
in interfaceBeanManager
-
createAnnotatedType
public <T> AnnotatedType<T> createAnnotatedType(java.lang.Class<T> type)
- Specified by:
createAnnotatedType
in interfaceBeanManager
-
createInjectionTarget
public <T> InjectionTarget<T> createInjectionTarget(AnnotatedType<T> type)
- Specified by:
createInjectionTarget
in interfaceBeanManager
-
getInjectionTargetFactory
public <T> InjectionTargetFactory<T> getInjectionTargetFactory(AnnotatedType<T> annotatedType)
- Specified by:
getInjectionTargetFactory
in interfaceBeanManager
-
getProducerFactory
public <X> ProducerFactory<X> getProducerFactory(AnnotatedField<? super X> field, Bean<X> declaringBean)
- Specified by:
getProducerFactory
in interfaceBeanManager
-
getProducerFactory
public <X> ProducerFactory<X> getProducerFactory(AnnotatedMethod<? super X> method, Bean<X> declaringBean)
- Specified by:
getProducerFactory
in interfaceBeanManager
-
createBeanAttributes
public <T> BeanAttributes<T> createBeanAttributes(AnnotatedType<T> type)
- Specified by:
createBeanAttributes
in interfaceBeanManager
-
createBeanAttributes
public BeanAttributes<?> createBeanAttributes(AnnotatedMember<?> type)
- Specified by:
createBeanAttributes
in interfaceBeanManager
-
createBean
public <T> Bean<T> createBean(BeanAttributes<T> attributes, java.lang.Class<T> beanClass, InjectionTargetFactory<T> injectionTargetFactory)
- Specified by:
createBean
in interfaceBeanManager
-
createBean
public <T,X> Bean<T> createBean(BeanAttributes<T> attributes, java.lang.Class<X> beanClass, ProducerFactory<X> producerFactory)
- Specified by:
createBean
in interfaceBeanManager
-
createInjectionPoint
public InjectionPoint createInjectionPoint(AnnotatedField<?> field)
- Specified by:
createInjectionPoint
in interfaceBeanManager
-
createInjectionPoint
public InjectionPoint createInjectionPoint(AnnotatedParameter<?> parameter)
- Specified by:
createInjectionPoint
in interfaceBeanManager
-
getExtension
public <T extends Extension> T getExtension(java.lang.Class<T> extensionClass)
- Specified by:
getExtension
in interfaceBeanManager
-
-