Interface ModuleHandler
- All Known Subinterfaces:
ActionHandler
,ConditionHandler
,TimeBasedConditionHandler
,TimeBasedTriggerHandler
,TriggerHandler
- All Known Implementing Classes:
BaseActionModuleHandler
,BaseConditionModuleHandler
,BaseModuleHandler
,BaseTriggerModuleHandler
@NonNullByDefault
public interface ModuleHandler
A common interface for all module Handler interfaces. The Handler interfaces are
bridge between RuleManager and external modules used by the RuleManager.
- Author:
- Yordan Mihaylov - Initial contribution
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
The method is called by RuleManager to free resources whenModuleHandler
is released.void
setCallback
(ModuleHandlerCallback callback) The callback is injected to the handler through this method.
-
Method Details
-
dispose
void dispose()The method is called by RuleManager to free resources whenModuleHandler
is released. -
setCallback
The callback is injected to the handler through this method.- Parameters:
callback
- aModuleHandlerCallback
instance
-