Package org.jboss.weld.injection
Class ResourceInjectionFactory
- java.lang.Object
-
- org.jboss.weld.injection.ResourceInjectionFactory
-
- All Implemented Interfaces:
Iterable<ResourceInjectionProcessor<?,?>>,org.jboss.weld.bootstrap.api.Service
public final class ResourceInjectionFactory extends Object implements org.jboss.weld.bootstrap.api.Service, Iterable<ResourceInjectionProcessor<?,?>>
Factory class that producesResourceInjectioninstances for resource fields and setter methods.- Author:
- Martin Kouba
-
-
Constructor Summary
Constructors Constructor Description ResourceInjectionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddResourceInjectionProcessor(ResourceInjectionProcessor<?,?> processor)voidcleanup()List<Set<ResourceInjection<?>>>getResourceInjections(Bean<?> declaringBean, EnhancedAnnotatedType<?> type, BeanManagerImpl manager)<T,X>
ResourceInjection<T>getStaticProducerFieldResourceInjection(FieldInjectionPoint<T,X> fieldInjectionPoint, BeanManagerImpl beanManager)Iterator<ResourceInjectionProcessor<?,?>>iterator()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
addResourceInjectionProcessor
public void addResourceInjectionProcessor(ResourceInjectionProcessor<?,?> processor)
-
getResourceInjections
public List<Set<ResourceInjection<?>>> getResourceInjections(Bean<?> declaringBean, EnhancedAnnotatedType<?> type, BeanManagerImpl manager)
- Parameters:
declaringBean-type-manager-- Returns:
- resource injections for the given bean
-
getStaticProducerFieldResourceInjection
public <T,X> ResourceInjection<T> getStaticProducerFieldResourceInjection(FieldInjectionPoint<T,X> fieldInjectionPoint, BeanManagerImpl beanManager)
- Parameters:
fieldInjectionPoint-beanManager-- Returns:
- the corresponding resource injection for the given field injection point, or
nullif no such resource injection exists
-
cleanup
public void cleanup()
- Specified by:
cleanupin interfaceorg.jboss.weld.bootstrap.api.Service
-
iterator
public Iterator<ResourceInjectionProcessor<?,?>> iterator()
- Specified by:
iteratorin interfaceIterable<ResourceInjectionProcessor<?,?>>
-
-