From f4532a9e8853aae80f855af0d6d32a125d27e470 Mon Sep 17 00:00:00 2001 From: jimtng <2554958+jimtng@users.noreply.github.com> Date: Mon, 25 Apr 2022 19:18:50 +1000 Subject: [PATCH] [jrubyscripting] Fix UI configuration property id (#12650) Signed-off-by: Jimmy Tanagra --- .../jrubyscripting/internal/JRubyScriptEngineFactory.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bundles/org.openhab.automation.jrubyscripting/src/main/java/org/openhab/automation/jrubyscripting/internal/JRubyScriptEngineFactory.java b/bundles/org.openhab.automation.jrubyscripting/src/main/java/org/openhab/automation/jrubyscripting/internal/JRubyScriptEngineFactory.java index 74501aa84..4879b7922 100644 --- a/bundles/org.openhab.automation.jrubyscripting/src/main/java/org/openhab/automation/jrubyscripting/internal/JRubyScriptEngineFactory.java +++ b/bundles/org.openhab.automation.jrubyscripting/src/main/java/org/openhab/automation/jrubyscripting/internal/JRubyScriptEngineFactory.java @@ -27,6 +27,7 @@ import org.eclipse.jdt.annotation.Nullable; import org.openhab.core.automation.module.script.AbstractScriptEngineFactory; import org.openhab.core.automation.module.script.ScriptEngineFactory; import org.openhab.core.config.core.ConfigurableService; +import org.osgi.framework.Constants; import org.osgi.service.component.annotations.Activate; import org.osgi.service.component.annotations.Component; import org.osgi.service.component.annotations.Modified; @@ -38,7 +39,8 @@ import org.osgi.service.component.annotations.Modified; * @author Jimmy Tanagra - Add require injection */ @NonNullByDefault -@Component(service = ScriptEngineFactory.class, configurationPid = "org.openhab.automation.jrubyscripting") +@Component(service = ScriptEngineFactory.class, configurationPid = "org.openhab.automation.jrubyscripting", property = Constants.SERVICE_PID + + "=org.openhab.automation.jrubyscripting") @ConfigurableService(category = "automation", label = "JRuby Scripting", description_uri = "automation:jruby") public class JRubyScriptEngineFactory extends AbstractScriptEngineFactory {