Package

org.springframework.scala.context

function

Permalink

package function

Visibility
  1. Public
  2. All

Type Members

  1. trait BeanLookupFunction[T] extends () ⇒ T

    Permalink

    Function that looks up a bean in a bean factory.

    Function that looks up a bean in a bean factory. Also allows for registration of init and destroy methods.

    See also

    FunctionalConfiguration

  2. trait ContextSupport extends AnyRef

    Permalink

    Defines the configuration elements for the Spring Framework's application context support.

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

  3. class FunctionalConfigApplicationContext extends GenericApplicationContext with RichApplicationContext

    Permalink

    Standalone application context, accepting org.springframework.scala.context.function.FunctionalConfiguration classes as input.

    Standalone application context, accepting org.springframework.scala.context.function.FunctionalConfiguration classes as input. Allows for registering classes one by one using registerClasses as well as registering functional configuration instances with registerConfigurations.

    In case of multiple FunctionalConfiguration classes, beans defined in later configurations will override those defined in earlier configurations. This can be leveraged to deliberately override certain bean definitions via an extra configuration.

    See also

    FunctionalConfiguration

  4. trait FunctionalConfiguration extends DelayedInit

    Permalink

    Base trait used to declare one or more Spring Beans that may be processed by the Spring container.

    Base trait used to declare one or more Spring Beans that may be processed by the Spring container. For example:

    class PersonConfiguration extends FunctionalConfiguration {
      bean() {
        new Person("John", "Doe")
      }
    }

    Besides the bean method, the FunctionalConfiguration trait also offers methods to register singletons, prototypes, importing XML or @Configuration classes, bean profiles and more.

    Note

    Extending this trait in a sub-trait can give initialization issues, due to the nature of the scala.DelayedInit trait used. Therefore, make sure to extend this trait in a class.

Value Members

  1. object FunctionalConfigApplicationContext

    Permalink

    Companion object to the FunctionalConfigApplicationContext class.

Ungrouped