Class DefaultConfigurationService

  • All Implemented Interfaces:
    ConfigurationService, java.io.Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean

    public class DefaultConfigurationService
    extends AbstractService
    implements ConfigurationService
    Default implementation of the configuration service interface.
    Since:
    4.0
    See Also:
    Serialized Form
    • Constructor Detail

      • DefaultConfigurationService

        public DefaultConfigurationService()
    • Method Detail

      • getConfiguration

        public org.apache.commons.configuration.Configuration getConfiguration()
        Returned value is a commons Configuration instance and not a HybrisConfiguration.
        Advantage: only most used getters are available; unused confusing methods are hidden.
        Disadvantage: when using listeners result must be cast to AbstractConfiguration.
        Specified by:
        getConfiguration in interface ConfigurationService
        Returns:
        Configuration
      • setTenantService

        public void setTenantService​(TenantService tenantService)
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Description copied from class: AbstractService
        Invoked by a BeanFactory after it has set all bean properties supplied. Overwrite this method for adding/implementing additional code into the service. Important note: Please call always super.afterPropertiesSet() before or the java serialization won't work.
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Overrides:
        afterPropertiesSet in class AbstractService
        Throws:
        java.lang.Exception
        See Also:
        InitializingBean.afterPropertiesSet()