Package cronapp.framework.core
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 Summary
Fields Modifier and Type Field Description static StringPROPERTY_FEATURE_DATABASEstatic StringPROPERTY_FEATURE_LIQUIBASE
-
Constructor Summary
Constructors Constructor Description CronappConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> Tautowire(Class<T> requiredType)org.springframework.cache.CacheManagercacheManager()static <T> TgetBean(Class<T> requiredType)static ObjectgetBean(String name)static <T> TgetBean(String name, Class<T> requiredType)static StringgetProperty(String key)CronappSettingsServicepropertiesSettingsService(org.springframework.core.env.Environment environment)CronappSettingsServicerepositorySettingsService(CronappSettingsRepository settingsRepository, org.springframework.core.env.Environment environment)voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
-
-
Field Detail
-
PROPERTY_FEATURE_DATABASE
public static final String PROPERTY_FEATURE_DATABASE
- See Also:
- Constant Field Values
-
PROPERTY_FEATURE_LIQUIBASE
public static final String PROPERTY_FEATURE_LIQUIBASE
- See Also:
- Constant Field Values
-
-
Method Detail
-
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:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
cacheManager
@Bean public org.springframework.cache.CacheManager cacheManager()
-
-