Search in sources :

Example 1 with ScriptedHandler

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;
}
Also used : ModuleHandler(org.eclipse.smarthome.automation.handler.ModuleHandler) ScriptedHandler(org.eclipse.smarthome.automation.module.script.rulesupport.shared.ScriptedHandler)

Aggregations

ModuleHandler (org.eclipse.smarthome.automation.handler.ModuleHandler)1 ScriptedHandler (org.eclipse.smarthome.automation.module.script.rulesupport.shared.ScriptedHandler)1