Class CommandFactoryRegistryMockImpl

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

public class CommandFactoryRegistryMockImpl extends Object implements org.springframework.context.ApplicationContextAware, CommandFactoryRegistry
  • Field Details

  • Constructor Details

    • CommandFactoryRegistryMockImpl

      public CommandFactoryRegistryMockImpl()
  • Method Details

    • getFactory

      public CommandFactory getFactory(String paymentProvider) throws AdapterException
      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
      Throws:
      AdapterException
    • getFactory

      public CommandFactory getFactory(BasicCardInfo card, boolean threeD) throws AdapterException
      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
      Throws:
      AdapterException
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException