Class CronappConfiguration

java.lang.Object
cronapp.framework.core.CronappConfiguration
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Configuration @ComponentScan @EnableCaching public class CronappConfiguration extends Object implements org.springframework.context.ApplicationContextAware
  • Field Details

  • Constructor Details

    • CronappConfiguration

      public CronappConfiguration()
  • Method Details

    • hasDatabase

      public static boolean hasDatabase(org.springframework.core.env.Environment environment)
    • hasDatabase

      public static boolean hasDatabase()
    • getProperty

      public static String getProperty(String key)
    • getBean

      public static <T> T getBean(String name, @Nullable Class<T> requiredType)
    • getBean

      public static Object getBean(String name)
    • getBean

      public static <T> T getBean(Class<T> requiredType)
    • autowire

      public static <T> T autowire(Class<T> requiredType)
    • repositorySettingsService

      @Bean @ConditionalOnBean(CronappSettingsRepository.class) public CronappSettingsService repositorySettingsService(CronappSettingsRepository settingsRepository, org.springframework.core.env.Environment environment)
    • propertiesSettingsService

      @Bean @ConditionalOnMissingBean(CronappSettingsRepository.class) public CronappSettingsService propertiesSettingsService(org.springframework.core.env.Environment environment)
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
    • cacheManager

      @Bean public org.springframework.cache.CacheManager cacheManager()
    • authorizedClientManager

      @Bean public org.springframework.security.oauth2.client.OAuth2AuthorizedClientManager authorizedClientManager(Optional<org.springframework.security.oauth2.client.registration.ClientRegistrationRepository> clientRegistrationRepository, Optional<org.springframework.security.oauth2.client.web.OAuth2AuthorizedClientRepository> authorizedClientRepository)