Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[automation] Extracted accessor into interface and added to script engine context … #1843

Merged
merged 1 commit into from
Nov 28, 2020

Conversation

jpg0
Copy link
Contributor

@jpg0 jpg0 commented Nov 23, 2020

…to allow access to script extensions from script engine factories

This is to allow script engines the ability to reference extensions (via the script context). Note that I have called the methods findX rather than getX because getDefaultPresets already exists, yet returns the preset names, not the presets themselves.

(I will move out of draft once I've finished testing.)

Signed-off-by: Jonathan Gilbert jpg@trillica.com

…to allow access to script extensions from script engine factories

Signed-off-by: Jonathan Gilbert <jpg@trillica.com>
@jpg0 jpg0 changed the title Extracted accessor into interface and added to script engine context … [automation] Extracted accessor into interface and added to script engine context … Nov 23, 2020
@jpg0
Copy link
Contributor Author

jpg0 commented Nov 26, 2020

I've now tested this with both existing (groovy) and new (graaljs) and it all looks good, so I'll take out of draft.

@jpg0 jpg0 marked this pull request as ready for review November 26, 2020 10:06
Copy link
Member

@kaikreuzer kaikreuzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kaikreuzer kaikreuzer merged commit e8d017d into openhab:master Nov 28, 2020
@kaikreuzer kaikreuzer added this to the 3.0.0.M4 milestone Nov 29, 2020
@kaikreuzer kaikreuzer added the enhancement An enhancement or new feature of the Core label Nov 29, 2020
@jpg0 jpg0 deleted the extract-scriptextensionaccessor branch December 2, 2020 01:10
splatch pushed a commit to ConnectorIO/copybara-hab-core that referenced this pull request Jul 11, 2023
…to allow access to script extensions from script engine factories (openhab#1843)

Signed-off-by: Jonathan Gilbert <jpg@trillica.com>
GitOrigin-RevId: e8d017d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature of the Core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants