Convenience method used to invoke component scanning with default parameters and varargs list of the base packages.
Convenience method used to invoke component scanning with default parameters and varargs list of the base packages.
the packages to check for annotated classes
Scans the classpath for annotated components that will be auto-registered as Spring beans.
Scans the classpath for annotated components that will be auto-registered as Spring beans. By default, the Spring-provided org.springframework.stereotype.Component, org.springframework.stereotype.Repository, org.springframework.stereotype.Service, and org.springframework.stereotype.Controller stereotypes will be detected.
This method is an equivalent of the context:component-scan
element of the Spring
Schema configuration.
the packages to check for annotated classes
useDefaultFilters whether to include the default filters for the org.springframework.stereotype.Component, org.springframework.stereotype.Repository, org.springframework.stereotype.Service, and org.springframework.stereotype.Controller stereotype
the resource pattern to use when scanning the classpath. This value will be appended to each base package name.
the org.springframework.beans.factory.support.BeanNameGenerator to use for detected bean classes. Default name generator is inherited from the org.springframework.scala.context.function.FunctionalConfiguration.
the org.springframework.context.annotation.ScopeMetadataResolver to use for detected
bean classes. Note that this will override any custom scopedProxyMode
setting. The default
is an org.springframework.context.annotation.AnnotationScopeMetadataResolver.
the proxy behavior for non-singleton scoped beans. Note that this will override any custom
scopeMetadataResolver
setting. The default is ScopedProxyMode#NO
.
include filters to the resulting classes to find candidates
exclude filters to the resulting classes to find candidates
Activates various annotations to be detected in bean classes: Spring's
org.springframework.beans.factory.annotation.Required and
org.springframework.beans.factory.annotation.Autowired, as well as JSR 250's
javax.annotation.PostConstruct, javax.annotation.PreDestroy and
javax.annotation.Resource (if available),
JAX-WS's javax.xml.ws.WebServiceRef (if available),
EJB3's EJB
(if available),
and JPA's PersistenceContext
and PersistenceUnit
(if available).
Activates various annotations to be detected in bean classes: Spring's
org.springframework.beans.factory.annotation.Required and
org.springframework.beans.factory.annotation.Autowired, as well as JSR 250's
javax.annotation.PostConstruct, javax.annotation.PreDestroy and
javax.annotation.Resource (if available),
JAX-WS's javax.xml.ws.WebServiceRef (if available),
EJB3's EJB
(if available),
and JPA's PersistenceContext
and PersistenceUnit
(if available).
Alternatively, you may choose to activate the individual BeanPostProcessors for
those annotations.
This method does not activate processing of Spring's
org.springframework.transaction.annotation.Transactional or
EJB3's TransactionAttribute
annotation. Consider the use of the TransactionSupport
configuration trait for that purpose.
Defines the configuration elements for the Spring Framework's application context support. Effects the activation of various configuration styles for the containing Spring ApplicationContext.