Class DefaultCommandFactoryRegistryImpl

  • All Implemented Interfaces:
    CommandFactoryRegistry, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

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

      • DefaultCommandFactoryRegistryImpl

        public DefaultCommandFactoryRegistryImpl()
    • Method Detail

      • getFactory

        public CommandFactory getFactory​(java.lang.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
      • 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​(java.util.Collection<CommandFactory> commandFactoryList)