public class DefaultCommandFactoryImpl extends Object implements CommandFactory
| Constructor and Description |
|---|
DefaultCommandFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
<T extends Command> |
createCommand(Class<T> commandInterface)
Create implementation for given commandInterface
|
String |
getPaymentProvider()
return payment provider name
|
void |
setCommands(Map<Class<Command>,Command> commands) |
void |
setPaymentProvider(String paymentProvider) |
public <T extends Command> T createCommand(Class<T> commandInterface) throws CommandNotSupportedException
CommandFactorycreateCommand in interface CommandFactoryT - interface of commandcommandInterface - command interfaceCommandNotSupportedExceptionpublic void setCommands(Map<Class<Command>,Command> commands)
commands - the commands to setpublic String getPaymentProvider()
CommandFactorygetPaymentProvider in interface CommandFactorypublic void setPaymentProvider(String paymentProvider)
paymentProvider - the paymentProvider to setCopyright © 2017 SAP SE. All Rights Reserved.