org.springframework.context.annotation
Class ComponentScanSpec

java.lang.Object
  extended by org.springframework.context.config.AbstractFeatureSpecification
      extended by org.springframework.context.annotation.ComponentScanSpec
All Implemented Interfaces:
FeatureSpecification, SourceAwareSpecification

public final class ComponentScanSpec
extends AbstractFeatureSpecification

Specifies the configuration of Spring's component-scanning feature. May be used directly within a @Feature method, or indirectly through the @ComponentScan annotation.

Since:
3.1
Author:
Chris Beams
See Also:
ComponentScan, ComponentScanAnnotationParser, ComponentScanBeanDefinitionParser, ComponentScanExecutor

Field Summary
 
Fields inherited from class org.springframework.context.config.AbstractFeatureSpecification
executorType
 
Constructor Summary
ComponentScanSpec(Class<?>... basePackageClasses)
           
ComponentScanSpec(String... basePackages)
           
 
Method Summary
 ComponentScanSpec beanNameGenerator(BeanNameGenerator beanNameGenerator)
           
 void doValidate(ProblemCollector problems)
           
 ComponentScanSpec excludeFilters(TypeFilter... excludeFilters)
           
 ComponentScanSpec includeAnnotationConfig(Boolean includeAnnotationConfig)
           
 ComponentScanSpec includeFilters(TypeFilter... includeFilters)
           
 ComponentScanSpec resourcePattern(String resourcePattern)
           
 ComponentScanSpec scopedProxyMode(ScopedProxyMode scopedProxyMode)
           
 ComponentScanSpec scopeMetadataResolver(ScopeMetadataResolver scopeMetadataResolver)
           
 ComponentScanSpec useDefaultFilters(Boolean useDefaultFilters)
           
 
Methods inherited from class org.springframework.context.config.AbstractFeatureSpecification
execute, source, source, sourceName, sourceName, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentScanSpec

public ComponentScanSpec(String... basePackages)
Parameters:
basePackages -
See Also:
forDelimitedPackages(String)

ComponentScanSpec

public ComponentScanSpec(Class<?>... basePackageClasses)
Method Detail

includeAnnotationConfig

public ComponentScanSpec includeAnnotationConfig(Boolean includeAnnotationConfig)

resourcePattern

public ComponentScanSpec resourcePattern(String resourcePattern)

beanNameGenerator

public ComponentScanSpec beanNameGenerator(BeanNameGenerator beanNameGenerator)

scopeMetadataResolver

public ComponentScanSpec scopeMetadataResolver(ScopeMetadataResolver scopeMetadataResolver)

scopedProxyMode

public ComponentScanSpec scopedProxyMode(ScopedProxyMode scopedProxyMode)

useDefaultFilters

public ComponentScanSpec useDefaultFilters(Boolean useDefaultFilters)

includeFilters

public ComponentScanSpec includeFilters(TypeFilter... includeFilters)

excludeFilters

public ComponentScanSpec excludeFilters(TypeFilter... excludeFilters)

doValidate

public void doValidate(ProblemCollector problems)
Specified by:
doValidate in class AbstractFeatureSpecification