Package com.almis.awe.service
Class PropertyService
java.lang.Object
com.almis.awe.config.ServiceConfig
com.almis.awe.service.PropertyService
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
Property service class. Used to retrieve database application parameters and add them to environment
- Author:
- pgarcia on 12/06/2017.
-
Constructor Summary
ConstructorDescriptionPropertyService
(QueryService queryService, org.springframework.core.env.ConfigurableEnvironment configurableEnvironment, DatabaseConfigProperties databaseConfigProperties) Autowired constructor -
Method Summary
Modifier and TypeMethodDescriptionGenerate application propertiesMethods inherited from class com.almis.awe.config.ServiceConfig
containsBean, getApplicationContext, getBean, getBean, getElements, getLocale, getLocale, getProperty, getProperty, getRequest, getSession, setApplicationContext
-
Constructor Details
-
PropertyService
public PropertyService(QueryService queryService, org.springframework.core.env.ConfigurableEnvironment configurableEnvironment, DatabaseConfigProperties databaseConfigProperties) Autowired constructor- Parameters:
queryService
- Query serviceconfigurableEnvironment
- Configurable environmentdatabaseConfigProperties
- Database configuration properties
-
-
Method Details
-
refreshDatabaseProperties
Generate application properties- Returns:
- Service data
-