Class PropertyService

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

    public class PropertyService
    extends ServiceConfig
    Property service class. Used to retrieve database application parameters and add them to environment
    Author:
    pgarcia on 12/06/2017.
    • Constructor Detail

      • PropertyService

        public PropertyService​(QueryService queryService,
                               org.springframework.core.env.ConfigurableEnvironment configurableEnvironment,
                               DatabaseConfigProperties databaseConfigProperties)
        Autowired constructor
        Parameters:
        queryService - Query service
        configurableEnvironment - Configurable environment
        databaseConfigProperties - Database configuration properties
    • Method Detail

      • refreshDatabaseProperties

        public ServiceData refreshDatabaseProperties()
        Generate application properties
        Returns:
        Service data