Class SwitchableProviderFactoryImpl

java.lang.Object
de.hybris.platform.sap.productconfig.services.impl.SwitchableProviderFactoryImpl
All Implemented Interfaces:
ProviderFactory, SwitchableProviderFactory

public class SwitchableProviderFactoryImpl extends Object implements SwitchableProviderFactory
Default implementation for SwitchableProviderFactory
  • Field Details

  • Constructor Details

    • SwitchableProviderFactoryImpl

      public SwitchableProviderFactoryImpl()
  • Method Details

    • getActiveProviderFactory

      protected ProviderFactory getActiveProviderFactory()
    • setDefaultProviderFactoryActive

      protected void setDefaultProviderFactoryActive()
    • getFactoryBeanNameConfiguredViaProperty

      protected String getFactoryBeanNameConfiguredViaProperty()
    • findDefaultProviderFactory

      protected String findDefaultProviderFactory()
    • getConfigurationProvider

      public ConfigurationProvider getConfigurationProvider()
      Description copied from interface: ProviderFactory
      Retrieves an instance of the configuration provider according to the hybris application configuration.
      Specified by:
      getConfigurationProvider in interface ProviderFactory
      Returns:
      instance of the configuration provider
    • getPricingProvider

      public PricingProvider getPricingProvider()
      Description copied from interface: ProviderFactory
      Retrieves an instance of the pricing provider according to the hybris application configuration.
      Specified by:
      getPricingProvider in interface ProviderFactory
      Returns:
      instance of the pricing provider
    • getAnalyticsProvider

      public AnalyticsProvider getAnalyticsProvider()
      Description copied from interface: ProviderFactory
      Retrieves an instance of the analytics provider
      Specified by:
      getAnalyticsProvider in interface ProviderFactory
      Returns:
      instance of the analytics provider
    • getProductCsticAndValueParameterProvider

      public ProductCsticAndValueParameterProvider getProductCsticAndValueParameterProvider()
      Description copied from interface: ProviderFactory
      Retrieve an instance of the cstic value provider, needed for the backoffice rule editor
      Specified by:
      getProductCsticAndValueParameterProvider in interface ProviderFactory
      Returns:
      instance of the cstic value parameter provider
    • getPricingParameter

      public PricingConfigurationParameter getPricingParameter()
      Description copied from interface: ProviderFactory
      Retrieve an instance of the pricing parameters
      Specified by:
      getPricingParameter in interface ProviderFactory
      Returns:
      instance of the pricing parameters
    • switchProviderFactory

      public void switchProviderFactory(String providerFactoryBeanName)
      Description copied from interface: SwitchableProviderFactory
      Activates the specified provider factory. After calling this method all provider requests will be processed by the specified factory.
      Specified by:
      switchProviderFactory in interface SwitchableProviderFactory
      Parameters:
      providerFactoryBeanName - provider factory to activate
    • getProviderFactoryInstance

      public ProviderFactory getProviderFactoryInstance(String providerFactoryBeanName)
    • reset

      protected void reset()
      resets the current session provider, so enable provider switch in session
    • setRegisteredProviderFactories

      public void setRegisteredProviderFactories(List<String> registeredProviderFactories)
    • isProviderFactoryAvailable

      public boolean isProviderFactoryAvailable(String providerFactoryBeanName)
      Specified by:
      isProviderFactoryAvailable in interface SwitchableProviderFactory
      Parameters:
      providerFactoryBeanName - bean name to check
      Returns:
      true, only if the given provider factory is available
    • getRegisteredProviderFactories

      protected List<String> getRegisteredProviderFactories()
    • getProviderFactoryInstances

      protected Map<String,ProviderFactory> getProviderFactoryInstances()
    • getActiveProviderFactoryBeanName

      protected String getActiveProviderFactoryBeanName()
    • setActiveProviderFactoryBeanName

      protected void setActiveProviderFactoryBeanName(String activeProviderFactoryBeanName)
    • getApplicationContext

      protected org.springframework.context.ApplicationContext getApplicationContext()
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
    • isProviderFactorySwitchAllowed

      protected boolean isProviderFactorySwitchAllowed()
    • getSessionService

      protected SessionService getSessionService()
    • setSessionService

      public void setSessionService(SessionService sessionService)