Class DefaultCommandFactoryRegistryImpl

java.lang.Object
de.hybris.platform.payment.commands.factory.impl.DefaultCommandFactoryRegistryImpl
All Implemented Interfaces:
CommandFactoryRegistry, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

public class DefaultCommandFactoryRegistryImpl extends Object implements CommandFactoryRegistry, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
default implementation of command factory register
  • Constructor Details

    • DefaultCommandFactoryRegistryImpl

      public DefaultCommandFactoryRegistryImpl()
  • Method Details

    • getFactory

      public CommandFactory getFactory(String paymentProvider)
      Description copied from interface: CommandFactoryRegistry
      Return Factory of command for payment provider that start to serve transaction
      Specified by:
      getFactory in interface CommandFactoryRegistry
      Parameters:
      paymentProvider - provider that start to work on transaction
      Returns:
      the command factory
    • getFactory

      public CommandFactory getFactory(BasicCardInfo card, boolean threeD)
      Description copied from interface: CommandFactoryRegistry
      Return Factory of command for payment provider that can serve card.
      Specified by:
      getFactory in interface CommandFactoryRegistry
      Parameters:
      card - Card to serve.
      threeD - is 3D transaction
      Returns:
      the command factory
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • setCommandFactoryList

      public void setCommandFactoryList(Collection<CommandFactory> commandFactoryList)