Function that looks up a bean in a bean factory.
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.
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
as well as registering functional configuration
instances with registerClasses
.registerConfigurations
In case of multiple
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.
FunctionalConfiguration
FunctionalConfiguration
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.
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.
Companion object to the
class.FunctionalConfigApplicationContext
Function that looks up a bean in a bean factory. Also allows for registration of init and destroy methods.
FunctionalConfiguration