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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetFactory(BasicCardInfo card, boolean threeD) Return Factory of command for payment provider that can serve card.getFactory(String paymentProvider) Return Factory of command for payment provider that start to serve transactionvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetCommandFactoryList(Collection<CommandFactory> commandFactoryList)
-
Constructor Details
-
DefaultCommandFactoryRegistryImpl
public DefaultCommandFactoryRegistryImpl()
-
-
Method Details
-
getFactory
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
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
-