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 java.lang.Object implements org.springframework.context.ApplicationContextAware, CommandFactoryRegistry
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMOCKUP_PAYMENT_PROVIDER
-
Constructor Summary
Constructors Constructor Description CommandFactoryRegistryMockImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
Field Detail
-
MOCKUP_PAYMENT_PROVIDER
public static final java.lang.String MOCKUP_PAYMENT_PROVIDER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFactory
public CommandFactory getFactory(java.lang.String paymentProvider) throws AdapterException
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
- Throws:
AdapterException
-
getFactory
public CommandFactory getFactory(BasicCardInfo card, boolean threeD) throws AdapterException
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
- Throws:
AdapterException
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
-