Interface CommandFactory
- All Known Implementing Classes:
DefaultCommandFactoryImpl
public interface CommandFactory
command factory - implementation done in
DefaultCommandFactoryImpl object must be created in spring xml in
adapter-
Method Summary
Modifier and TypeMethodDescription<T extends Command>
TcreateCommand(Class<T> commandInterface) Create implementation for given commandInterfacereturn payment provider name
-
Method Details
-
createCommand
Create implementation for given commandInterface- Type Parameters:
T- interface of command- Parameters:
commandInterface- command interface- Returns:
- implementation of command
- Throws:
CommandNotSupportedException
-
getPaymentProvider
String getPaymentProvider()return payment provider name- Returns:
- payment provider
-