Class JandexDiscoveryStrategy
- java.lang.Object
-
- org.jboss.weld.environment.deployment.discovery.AbstractDiscoveryStrategy
-
- org.jboss.weld.environment.deployment.discovery.jandex.JandexDiscoveryStrategy
-
- All Implemented Interfaces:
DiscoveryStrategy
public class JandexDiscoveryStrategy extends AbstractDiscoveryStrategy
An implementation ofDiscoveryStrategy
that is used when the jandex is available.- 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 JandexDiscoveryStrategy(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 void
beforeDiscovery(Collection<BeanArchiveBuilder> builders)
Initialize the strategy before accessing found BeanArchiveBuilder builders.org.jboss.weld.resources.spi.ClassFileServices
getClassFileServices()
org.jboss.jandex.CompositeIndex
getCompositeJandexIndex()
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, performDiscovery, processAllDiscovery, processNoneDiscovery, registerHandler, setBootstrap, setInitialBeanDefiningAnnotations, setResourceLoader, setScanner
-
-
-
-
Constructor Detail
-
JandexDiscoveryStrategy
public JandexDiscoveryStrategy(org.jboss.weld.resources.spi.ResourceLoader resourceLoader, org.jboss.weld.bootstrap.api.Bootstrap bootstrap, Set<Class<? extends Annotation>> initialBeanDefiningAnnotations)
-
-
Method Detail
-
getClassFileServices
public org.jboss.weld.resources.spi.ClassFileServices getClassFileServices()
- Specified by:
getClassFileServices
in interfaceDiscoveryStrategy
- Overrides:
getClassFileServices
in classAbstractDiscoveryStrategy
- Returns:
- the associated
ClassFileServices
ornull
-
beforeDiscovery
protected void beforeDiscovery(Collection<BeanArchiveBuilder> builders)
Description copied from class:AbstractDiscoveryStrategy
Initialize the strategy before accessing found BeanArchiveBuilder builders. Best used for saving some information before the process method for each builder is called.- Overrides:
beforeDiscovery
in classAbstractDiscoveryStrategy
-
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
-
getCompositeJandexIndex
public org.jboss.jandex.CompositeIndex getCompositeJandexIndex()
-
-