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 java.lang.Object implements CommandFactoryRegistry, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
default implementation of command factory register
-
-
Constructor Summary
Constructors Constructor Description DefaultCommandFactoryRegistryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()CommandFactorygetFactory(BasicCardInfo card, boolean threeD)Return Factory of command for payment provider that can serve card.CommandFactorygetFactory(java.lang.String paymentProvider)Return Factory of command for payment provider that start to serve transactionvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)voidsetCommandFactoryList(java.util.Collection<CommandFactory> commandFactoryList)
-
-
-
Method Detail
-
getFactory
public CommandFactory getFactory(java.lang.String paymentProvider)
Description copied from interface:CommandFactoryRegistryReturn Factory of command for payment provider that start to serve transaction- Specified by:
getFactoryin interfaceCommandFactoryRegistry- 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:CommandFactoryRegistryReturn Factory of command for payment provider that can serve card.- Specified by:
getFactoryin interfaceCommandFactoryRegistry- Parameters:
card- Card to serve.threeD- is 3D transaction- Returns:
- the command factory
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
setCommandFactoryList
public void setCommandFactoryList(java.util.Collection<CommandFactory> commandFactoryList)
-
-