Class SwitchableProviderFactoryImpl
java.lang.Object
de.hybris.platform.sap.productconfig.services.impl.SwitchableProviderFactoryImpl
- All Implemented Interfaces:
ProviderFactory,SwitchableProviderFactory
Default implementation for
SwitchableProviderFactory-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected ProviderFactoryprotected StringRetrieves an instance of the analytics providerprotected org.springframework.context.ApplicationContextRetrieves an instance of the configuration provider according to the hybris application configuration.protected StringRetrieve an instance of the pricing parametersRetrieves an instance of the pricing provider according to the hybris application configuration.Retrieve an instance of the cstic value provider, needed for the backoffice rule editorgetProviderFactoryInstance(String providerFactoryBeanName) protected Map<String,ProviderFactory> protected SessionServicebooleanisProviderFactoryAvailable(String providerFactoryBeanName) protected booleanprotected voidreset()resets the current session provider, so enable provider switch in sessionprotected voidsetActiveProviderFactoryBeanName(String activeProviderFactoryBeanName) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) protected voidvoidsetRegisteredProviderFactories(List<String> registeredProviderFactories) voidsetSessionService(SessionService sessionService) voidswitchProviderFactory(String providerFactoryBeanName) Activates the specified provider factory.
-
Field Details
-
SESSION_ATTR_ACTIVE_PROVIDER_NAME
- See Also:
-
-
Constructor Details
-
SwitchableProviderFactoryImpl
public SwitchableProviderFactoryImpl()
-
-
Method Details
-
getActiveProviderFactory
-
setDefaultProviderFactoryActive
protected void setDefaultProviderFactoryActive() -
getFactoryBeanNameConfiguredViaProperty
-
findDefaultProviderFactory
-
getConfigurationProvider
Description copied from interface:ProviderFactoryRetrieves an instance of the configuration provider according to the hybris application configuration.- Specified by:
getConfigurationProviderin interfaceProviderFactory- Returns:
- instance of the configuration provider
-
getPricingProvider
Description copied from interface:ProviderFactoryRetrieves an instance of the pricing provider according to the hybris application configuration.- Specified by:
getPricingProviderin interfaceProviderFactory- Returns:
- instance of the pricing provider
-
getAnalyticsProvider
Description copied from interface:ProviderFactoryRetrieves an instance of the analytics provider- Specified by:
getAnalyticsProviderin interfaceProviderFactory- Returns:
- instance of the analytics provider
-
getProductCsticAndValueParameterProvider
Description copied from interface:ProviderFactoryRetrieve an instance of the cstic value provider, needed for the backoffice rule editor- Specified by:
getProductCsticAndValueParameterProviderin interfaceProviderFactory- Returns:
- instance of the cstic value parameter provider
-
getPricingParameter
Description copied from interface:ProviderFactoryRetrieve an instance of the pricing parameters- Specified by:
getPricingParameterin interfaceProviderFactory- Returns:
- instance of the pricing parameters
-
switchProviderFactory
Description copied from interface:SwitchableProviderFactoryActivates the specified provider factory. After calling this method all provider requests will be processed by the specified factory.- Specified by:
switchProviderFactoryin interfaceSwitchableProviderFactory- Parameters:
providerFactoryBeanName- provider factory to activate
-
getProviderFactoryInstance
-
reset
protected void reset()resets the current session provider, so enable provider switch in session -
setRegisteredProviderFactories
-
isProviderFactoryAvailable
- Specified by:
isProviderFactoryAvailablein interfaceSwitchableProviderFactory- Parameters:
providerFactoryBeanName- bean name to check- Returns:
true, only if the given provider factory is available
-
getRegisteredProviderFactories
-
getProviderFactoryInstances
-
getActiveProviderFactoryBeanName
-
setActiveProviderFactoryBeanName
-
getApplicationContext
protected org.springframework.context.ApplicationContext getApplicationContext() -
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) -
isProviderFactorySwitchAllowed
protected boolean isProviderFactorySwitchAllowed() -
getSessionService
-
setSessionService
-