Class PreferencesAutoConfiguration

java.lang.Object
org.openwms.core.preferences.app.PreferencesAutoConfiguration

@AutoConfiguration(afterName="org.springframework.boot.data.jpa.autoconfigure.DataJpaRepositoriesAutoConfiguration") public class PreferencesAutoConfiguration extends Object
A PreferencesAutoConfiguration activates all components of the Preferences library in a consuming Spring Boot application without the need for component scanning of the org.openwms.core.preferences package. With the default (JPA) persistence backend the consuming application only needs to include the ORM mapping file in spring.jpa.mapping-resources=META-INF/preferences-orm.xml.
Author:
Heiko Scherrer
  • Constructor Details

    • PreferencesAutoConfiguration

      PreferencesAutoConfiguration()
  • Method Details

    • defaultPropertyScopeRegistrar

      @Bean @ConditionalOnMissingBean(PropertyScopeRegistrar.class) PropertyScopeRegistrar defaultPropertyScopeRegistrar()
      Registers the four generic built-in scopes APPLICATION, MODULE, ROLE, and USER. Backs off as soon as the consumer defines any own PropertyScopeRegistrar bean; the consumer then controls the complete scope set and must also register the built-in scopes it still wants to use.
      Returns:
      the default registrar contributing the built-in scopes