Trait

org.springframework.scala.context.function

ContextSupport

Related Doc: package function

Permalink

trait ContextSupport extends AnyRef

Defines the configuration elements for the Spring Framework's application context support. Effects the activation of various configuration styles for the containing Spring ApplicationContext.

Self Type
ContextSupport with FunctionalConfiguration
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ContextSupport
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def componentScan(basePackages: String*): Unit

    Permalink

    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.

    basePackages

    the packages to check for annotated classes

  7. def componentScan(basePackages: Seq[String], useDefaultFilters: Boolean = true, resourcePattern: Option[String] = None, beanNameGenerator: Option[BeanNameGenerator] = None, scopeResolver: Option[ScopeMetadataResolver] = None, scopedProxy: Option[ScopedProxyMode] = None, includeFilters: Seq[TypeFilter] = Seq.empty, excludeFilters: Seq[TypeFilter] = Seq.empty): Unit

    Permalink

    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.

    basePackages

    the packages to check for annotated classes

    useDefaultFilters

    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

    resourcePattern

    the resource pattern to use when scanning the classpath. This value will be appended to each base package name.

    beanNameGenerator

    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.

    scopeResolver

    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.

    scopedProxy

    the proxy behavior for non-singleton scoped beans. Note that this will override any custom scopeMetadataResolver setting. The default is ScopedProxyMode#NO.

    includeFilters

    include filters to the resulting classes to find candidates

    excludeFilters

    exclude filters to the resulting classes to find candidates

  8. def enableAnnotationConfig(): Unit

    Permalink

    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.

    Note

    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.

  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  19. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped