use of org.eclipse.smarthome.automation.module.script.rulesupport.shared.ScriptedHandler in project smarthome by eclipse.
the class ScriptedPrivateModuleHandlerFactory method internalCreate.
@Override
protected ModuleHandler internalCreate(Module module, String ruleUID) {
ModuleHandler moduleHandler = null;
ScriptedHandler scriptedHandler = null;
try {
scriptedHandler = privateTypes.get(module.getConfiguration().get(PRIV_ID));
} catch (Exception e) {
logger.warn("ScriptedHandler {} for ruleUID {} not found", module.getConfiguration().get(PRIV_ID), ruleUID);
}
if (scriptedHandler != null) {
moduleHandler = getModuleHandler(module, scriptedHandler);
}
return moduleHandler;
}
Aggregations