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 TypeMethodDescriptionvoiddispose()The method is called by RuleManager to free resources whenModuleHandleris released.voidsetCallback(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 whenModuleHandleris released. -
setCallback
The callback is injected to the handler through this method.- Parameters:
callback- aModuleHandlerCallbackinstance
-