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 produces
ResourceInjection instances for resource fields and setter methods.- Author:
- Martin Kouba
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResourceInjectionProcessor(ResourceInjectionProcessor<?, ?> processor) voidcleanup()List<Set<ResourceInjection<?>>>getResourceInjections(jakarta.enterprise.inject.spi.Bean<?> declaringBean, EnhancedAnnotatedType<?> type, BeanManagerImpl manager) <T,X> ResourceInjection<T> getStaticProducerFieldResourceInjection(FieldInjectionPoint<T, X> fieldInjectionPoint, BeanManagerImpl beanManager) iterator()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ResourceInjectionFactory
public ResourceInjectionFactory()
-
-
Method Details
-
addResourceInjectionProcessor
-
getResourceInjections
public List<Set<ResourceInjection<?>>> getResourceInjections(jakarta.enterprise.inject.spi.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
- Specified by:
iteratorin interfaceIterable<ResourceInjectionProcessor<?,?>>
-