Skip to content

Dependency injection

joris hermans edited this page Jan 24, 2015 · 2 revisions

For the dependency injection of Force & ForceMVC we are using wired!

The following components in ForceMVC are di components.

  • SecurityContextHolder
  • HandlerExceptionResolver
  • LocaleResolver
  • ServingAssistent

It is possible to override these components with your own implementation and register them as follow:

@Config
class OwnConfig {
  
  @Bean
  LocaleResolver localeResolver() {
     return new FixedLocaleResolver(Locale.ITALY);
  }
  
}
Clone this wiki locally