Interface CommandFactory

All Known Implementing Classes:
DefaultCommandFactoryImpl

public interface CommandFactory
command factory - implementation done in DefaultCommandFactoryImpl object must be created in spring xml in adapter
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends Command>
    T
    createCommand(Class<T> commandInterface)
    Create implementation for given commandInterface
    return payment provider name
  • Method Details

    • createCommand

      <T extends Command> T createCommand(Class<T> commandInterface) throws CommandNotSupportedException
      Create implementation for given commandInterface
      Type Parameters:
      T - interface of command
      Parameters:
      commandInterface - command interface
      Returns:
      implementation of command
      Throws:
      CommandNotSupportedException
    • getPaymentProvider

      String getPaymentProvider()
      return payment provider name
      Returns:
      payment provider