Package com.symphony.bdk.core.activity
Class ActivityRegistry
java.lang.Object
com.symphony.bdk.core.activity.ActivityRegistry
This class allows to bind an
AbstractActivity
to the Real Time Events source, or Datafeed.
It also maintains the list of registered activities.
If an activity to be registered is already existing in the registry, then the old one will be replaced.
In case of an activity of type SlashCommand
, it will replace the old one if this latter has the same name and both require bot mention (or both don't).
If the activity has /help as name, then it will replace HelpCommand
if it is already registered.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionList<AbstractActivity<?,
?>> void
register
(AbstractActivity<?, ?> activity) Registers an activity within the registry.
-
Constructor Details
-
ActivityRegistry
-
-
Method Details
-
register
Registers an activity within the registry.- Parameters:
activity
- An activity.
-
getActivityList
-