@API(status=STABLE) public class HelpCommand extends PatternCommandActivity<CommandContext>
Constructor and Description |
---|
HelpCommand(ActivityRegistry activityRegistry,
MessageService messageService) |
Modifier and Type | Method and Description |
---|---|
protected ActivityInfo |
info()
Build activity info.
|
protected void |
onActivity(CommandContext context)
Contain the activity business logic.
|
protected java.util.regex.Pattern |
pattern() |
beforeMatcher, matcher, prepareContext
bindToRealTimeEventsSource
createContextInstance, getInfo, processEvent
public HelpCommand(@Nonnull ActivityRegistry activityRegistry, @Nonnull MessageService messageService)
protected java.util.regex.Pattern pattern()
pattern
in class PatternCommandActivity<CommandContext>
protected void onActivity(CommandContext context)
ActivityMatcher.matches(ActivityContext)
retured
a true value.onActivity
in class AbstractActivity<V4MessageSent,CommandContext>
context
- The activity context object.protected ActivityInfo info()
info
in class AbstractActivity<V4MessageSent,CommandContext>