Class ReflectionDiscoveryStrategy
java.lang.Object
org.jboss.weld.environment.deployment.discovery.AbstractDiscoveryStrategy
org.jboss.weld.environment.deployment.discovery.ReflectionDiscoveryStrategy
- All Implemented Interfaces:
DiscoveryStrategy
This implementation supports bean-discovery-mode="annotated" and makes use of reflection to detect a class with a bean
defining annotation.
- Author:
- Matej Briškár, Martin Kouba
-
Field Summary
Fields inherited from class org.jboss.weld.environment.deployment.discovery.AbstractDiscoveryStrategy
bootstrap, initialBeanDefiningAnnotations, resourceLoader, scanner -
Constructor Summary
ConstructorsConstructorDescriptionReflectionDiscoveryStrategy(org.jboss.weld.resources.spi.ResourceLoader resourceLoader, org.jboss.weld.bootstrap.api.Bootstrap bootstrap, Set<Class<? extends Annotation>> initialBeanDefiningAnnotations, org.jboss.weld.bootstrap.spi.BeanDiscoveryMode emptyBeansXmlDiscoveryMode) -
Method Summary
Modifier and TypeMethodDescriptionprotected WeldBeanDeploymentArchiveProcess the bean archive with bean-discovery-mode of annotated.Methods inherited from class org.jboss.weld.environment.deployment.discovery.AbstractDiscoveryStrategy
addToArchives, afterDiscovery, beforeDiscovery, getClassFileServices, performDiscovery, processAllDiscovery, processNoneDiscovery, registerHandler, setBootstrap, setInitialBeanDefiningAnnotations, setResourceLoader, setScanner
-
Constructor Details
-
ReflectionDiscoveryStrategy
public ReflectionDiscoveryStrategy(org.jboss.weld.resources.spi.ResourceLoader resourceLoader, org.jboss.weld.bootstrap.api.Bootstrap bootstrap, Set<Class<? extends Annotation>> initialBeanDefiningAnnotations, org.jboss.weld.bootstrap.spi.BeanDiscoveryMode emptyBeansXmlDiscoveryMode)
-
-
Method Details
-
processAnnotatedDiscovery
Description copied from class:AbstractDiscoveryStrategyProcess the bean archive with bean-discovery-mode of annotated.- Overrides:
processAnnotatedDiscoveryin classAbstractDiscoveryStrategy
-