Class ScriptTransformationServiceFactory

java.lang.Object
org.openhab.core.automation.module.script.ScriptTransformationServiceFactory

@NonNullByDefault public class ScriptTransformationServiceFactory extends Object
The ScriptTransformationServiceFactory registers a ScriptTransformationService for each newly added script engine.
Author:
Jimmy Tanagra - Initial contribution
  • Constructor Details

    • ScriptTransformationServiceFactory

      public ScriptTransformationServiceFactory(org.osgi.service.component.ComponentFactory<ScriptTransformationService> factory)
  • Method Details

    • deactivate

      public void deactivate()
    • setScriptEngineFactory

      public void setScriptEngineFactory(ScriptEngineFactory engineFactory)
      As ScriptEngineFactorys are added/removed, this method will cache all available script types and registers a transformation service for the script engine.
    • unsetScriptEngineFactory

      public void unsetScriptEngineFactory(ScriptEngineFactory engineFactory)