Class BaseHandler
java.lang.Object
dev.sympho.modular_commands.execute.BaseHandler
Provides the global base result handler. This handler is used after a command is
executed if none of the context-specific handlers completed handling of that
result. In other words, it is a fallback/default handler.
- Since:
- 1.0
- Version:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResultHandler<CommandContext>The initial/default base handler. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResultHandler<CommandContext>get()Retrieves the current base handler.static voidset(ResultHandler<CommandContext> handler) Sets the base handler.
-
Field Details
-
DEFAULT
The initial/default base handler.
-
-
Method Details
-
get
Retrieves the current base handler.- Returns:
- The base handler.
-
set
Sets the base handler.- Parameters:
handler- The new base handler.
-