Package command.logic.external.reciever
Class NonArgumentReceiver
java.lang.Object
command.logic.external.reciever.NonArgumentReceiver
- All Implemented Interfaces:
ExternalBaseReceiver,ExceptionProvider,ApplicationResponseProvider<CommandStatusResponse>
public class NonArgumentReceiver
extends Object
implements ExternalBaseReceiver, ApplicationResponseProvider<CommandStatusResponse>
-
Constructor Summary
ConstructorsConstructorDescriptionNonArgumentReceiver(ApplicationResponseProvider<CommandStatusResponse>... providers) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidacceptResponse(CommandStatusResponse response) booleanreceiveCommand(CommandDescription command, String[] args)
-
Constructor Details
-
NonArgumentReceiver
@SafeVarargs public NonArgumentReceiver(ApplicationResponseProvider<CommandStatusResponse>... providers)
-
-
Method Details
-
receiveCommand
- Specified by:
receiveCommandin interfaceExternalBaseReceiver
-
acceptException
- Specified by:
acceptExceptionin interfaceExceptionProvider
-
acceptResponse
- Specified by:
acceptResponsein interfaceApplicationResponseProvider<CommandStatusResponse>
-