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 Object
implements org.springframework.context.ApplicationContextAware, CommandFactoryRegistry
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFactory(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)
-
Field Details
-
MOCKUP_PAYMENT_PROVIDER
- See Also:
-
-
Constructor Details
-
CommandFactoryRegistryMockImpl
public CommandFactoryRegistryMockImpl()
-
-
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
- Throws:
AdapterException
-
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
- 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
-