Class ReflectionDiscoveryStrategy
- java.lang.Object
-
- org.jboss.weld.environment.deployment.discovery.AbstractDiscoveryStrategy
-
- org.jboss.weld.environment.deployment.discovery.ReflectionDiscoveryStrategy
-
- All Implemented Interfaces:
DiscoveryStrategy
public class ReflectionDiscoveryStrategy extends AbstractDiscoveryStrategy
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
Constructors Constructor Description ReflectionDiscoveryStrategy(org.jboss.weld.resources.spi.ResourceLoader resourceLoader, org.jboss.weld.bootstrap.api.Bootstrap bootstrap, Set<Class<? extends Annotation>> initialBeanDefiningAnnotations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected WeldBeanDeploymentArchive
processAnnotatedDiscovery(BeanArchiveBuilder builder)
Process 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 Detail
-
ReflectionDiscoveryStrategy
public ReflectionDiscoveryStrategy(org.jboss.weld.resources.spi.ResourceLoader resourceLoader, org.jboss.weld.bootstrap.api.Bootstrap bootstrap, Set<Class<? extends Annotation>> initialBeanDefiningAnnotations)
-
-
Method Detail
-
processAnnotatedDiscovery
protected WeldBeanDeploymentArchive processAnnotatedDiscovery(BeanArchiveBuilder builder)
Description copied from class:AbstractDiscoveryStrategy
Process the bean archive with bean-discovery-mode of annotated.- Overrides:
processAnnotatedDiscovery
in classAbstractDiscoveryStrategy
-
-