Class DefaultCommandFactoryImpl
java.lang.Object
de.hybris.platform.payment.commands.factory.impl.DefaultCommandFactoryImpl
- All Implemented Interfaces:
CommandFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends Command>
TcreateCommand(Class<T> commandInterface) Create implementation for given commandInterfacereturn payment provider namevoidsetCommands(Map<Class<Command>, Command> commands) voidsetPaymentProvider(String paymentProvider)
-
Constructor Details
-
DefaultCommandFactoryImpl
public DefaultCommandFactoryImpl()
-
-
Method Details
-
createCommand
public <T extends Command> T createCommand(Class<T> commandInterface) throws CommandNotSupportedException Description copied from interface:CommandFactoryCreate implementation for given commandInterface- Specified by:
createCommandin interfaceCommandFactory- Type Parameters:
T- interface of command- Parameters:
commandInterface- command interface- Returns:
- implementation of command
- Throws:
CommandNotSupportedException
-
setCommands
- Parameters:
commands- the commands to set
-
getPaymentProvider
Description copied from interface:CommandFactoryreturn payment provider name- Specified by:
getPaymentProviderin interfaceCommandFactory- Returns:
- payment provider
-
setPaymentProvider
- Parameters:
paymentProvider- the paymentProvider to set
-