Class DefaultConfigurationService
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.service.AbstractService
-
- de.hybris.platform.servicelayer.config.impl.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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
AbstractService.SerializableDTO
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant
-
-
Constructor Summary
Constructors Constructor Description DefaultConfigurationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()Invoked by a BeanFactory after it has set all bean properties supplied.org.apache.commons.configuration.ConfigurationgetConfiguration()Returned value is a commonsConfigurationinstance and not aHybrisConfiguration.
Advantage: only most used getters are available; unused confusing methods are hidden.
Disadvantage: when using listeners result must be cast toAbstractConfiguration.voidsetTenantService(TenantService tenantService)-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
-
-
-
Method Detail
-
getConfiguration
public org.apache.commons.configuration.Configuration getConfiguration()
Returned value is a commonsConfigurationinstance and not aHybrisConfiguration.
Advantage: only most used getters are available; unused confusing methods are hidden.
Disadvantage: when using listeners result must be cast toAbstractConfiguration.- Specified by:
getConfigurationin interfaceConfigurationService- Returns:
Configuration
-
setTenantService
public void setTenantService(TenantService tenantService)
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.ExceptionDescription copied from class:AbstractServiceInvoked 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 alwayssuper.afterPropertiesSet()before or the java serialization won't work.- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Overrides:
afterPropertiesSetin classAbstractService- Throws:
java.lang.Exception- See Also:
InitializingBean.afterPropertiesSet()
-
-