public abstract class AbstractDiscoveryStrategy extends Object implements DiscoveryStrategy
| Modifier and Type | Field and Description |
|---|---|
protected org.jboss.weld.bootstrap.api.Bootstrap |
bootstrap |
protected Set<Class<? extends Annotation>> |
initialBeanDefiningAnnotations |
protected org.jboss.weld.resources.spi.ResourceLoader |
resourceLoader |
protected BeanArchiveScanner |
scanner |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDiscoveryStrategy() |
|
AbstractDiscoveryStrategy(org.jboss.weld.resources.spi.ResourceLoader resourceLoader,
org.jboss.weld.bootstrap.api.Bootstrap bootstrap,
Set<Class<? extends Annotation>> initialBeanDefiningAnnotations) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToArchives(Set<WeldBeanDeploymentArchive> deploymentArchives,
WeldBeanDeploymentArchive bda) |
protected void |
afterDiscovery(Set<WeldBeanDeploymentArchive> archives) |
protected void |
beforeDiscovery(Collection<BeanArchiveBuilder> builders)
Initialize the strategy before accessing found BeanArchiveBuilder builders.
|
org.jboss.weld.resources.spi.ClassFileServices |
getClassFileServices() |
Set<WeldBeanDeploymentArchive> |
performDiscovery() |
protected WeldBeanDeploymentArchive |
processAllDiscovery(BeanArchiveBuilder builder)
Process the bean archive with bean-discovery-mode of all.
|
protected WeldBeanDeploymentArchive |
processAnnotatedDiscovery(BeanArchiveBuilder builder)
Process the bean archive with bean-discovery-mode of annotated.
|
protected WeldBeanDeploymentArchive |
processNoneDiscovery(BeanArchiveBuilder builder)
Process the bean archive with bean-discovery-mode of none.
|
void |
registerHandler(BeanArchiveHandler handler)
Register additional
BeanArchiveHandler for handling discovered bean archives. |
void |
setBootstrap(org.jboss.weld.bootstrap.api.Bootstrap bootstrap)
Installs a
Bootstrap for use by the
implementation. |
void |
setInitialBeanDefiningAnnotations(Set<Class<? extends Annotation>> initialBeanDefiningAnnotations)
Installs the
Set of bean defining annotations that the
implementation may use when discovering beans. |
void |
setResourceLoader(org.jboss.weld.resources.spi.ResourceLoader resourceLoader)
Installs a
ResourceLoader for use by the
implementation. |
void |
setScanner(BeanArchiveScanner scanner)
Optionally, a client may set a custom scanner implementation.
|
protected org.jboss.weld.resources.spi.ResourceLoader resourceLoader
protected org.jboss.weld.bootstrap.api.Bootstrap bootstrap
protected Set<Class<? extends Annotation>> initialBeanDefiningAnnotations
protected BeanArchiveScanner scanner
protected AbstractDiscoveryStrategy()
public AbstractDiscoveryStrategy(org.jboss.weld.resources.spi.ResourceLoader resourceLoader, org.jboss.weld.bootstrap.api.Bootstrap bootstrap, Set<Class<? extends Annotation>> initialBeanDefiningAnnotations)
resourceLoader - bootstrap - initialBeanDefiningAnnotations - public void setResourceLoader(org.jboss.weld.resources.spi.ResourceLoader resourceLoader)
DiscoveryStrategyResourceLoader for use by the
implementation.setResourceLoader in interface DiscoveryStrategyresourceLoader - the ResourceLoader to installpublic void setBootstrap(org.jboss.weld.bootstrap.api.Bootstrap bootstrap)
DiscoveryStrategyBootstrap for use by the
implementation.setBootstrap in interface DiscoveryStrategybootstrap - the Bootstrap to installpublic void setScanner(BeanArchiveScanner scanner)
DiscoveryStrategysetScanner in interface DiscoveryStrategypublic void setInitialBeanDefiningAnnotations(Set<Class<? extends Annotation>> initialBeanDefiningAnnotations)
DiscoveryStrategySet of bean defining annotations that the
implementation may use when discovering beans.setInitialBeanDefiningAnnotations in interface DiscoveryStrategyinitialBeanDefiningAnnotations - the initial Set
of bean defining annotationspublic Set<WeldBeanDeploymentArchive> performDiscovery()
performDiscovery in interface DiscoveryStrategyWeldBeanDeploymentArchivespublic org.jboss.weld.resources.spi.ClassFileServices getClassFileServices()
getClassFileServices in interface DiscoveryStrategyClassFileServices or nullprotected void addToArchives(Set<WeldBeanDeploymentArchive> deploymentArchives, WeldBeanDeploymentArchive bda)
protected void beforeDiscovery(Collection<BeanArchiveBuilder> builders)
protected void afterDiscovery(Set<WeldBeanDeploymentArchive> archives)
protected WeldBeanDeploymentArchive processNoneDiscovery(BeanArchiveBuilder builder)
protected WeldBeanDeploymentArchive processAnnotatedDiscovery(BeanArchiveBuilder builder)
protected WeldBeanDeploymentArchive processAllDiscovery(BeanArchiveBuilder builder)
public void registerHandler(BeanArchiveHandler handler)
DiscoveryStrategyBeanArchiveHandler for handling discovered bean archives.registerHandler in interface DiscoveryStrategyhandler - the handlerCopyright © 2019. All rights reserved.