Interface CommandFactory
-
- All Known Implementing Classes:
DefaultCommandFactoryImpl
public interface CommandFactorycommand factory - implementation done inDefaultCommandFactoryImplobject must be created in spring xml in adapter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends Command>
TcreateCommand(java.lang.Class<T> commandInterface)Create implementation for given commandInterfacejava.lang.StringgetPaymentProvider()return payment provider name
-
-
-
Method Detail
-
createCommand
<T extends Command> T createCommand(java.lang.Class<T> commandInterface) throws CommandNotSupportedException
Create implementation for given commandInterface- Type Parameters:
T- interface of command- Parameters:
commandInterface- command interface- Returns:
- implementation of command
- Throws:
CommandNotSupportedException
-
getPaymentProvider
java.lang.String getPaymentProvider()
return payment provider name- Returns:
- payment provider
-
-