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] Change LifecycleScriptExtensionProvider and its Disposable interface to be public #2565

Merged
merged 1 commit into from
Nov 12, 2021

Conversation

jimtng
Copy link
Contributor

@jimtng jimtng commented Nov 8, 2021

LifecycleScriptExtensionProvider's Disposable interface is package-private which caused scriptry engines, e.g. JRuby unable to create a hook needed by the LifecycleTracker.addDisposeHook(). The hook is implemented from the Disposable functional interface which was not public.

Just making Disposable public without moving LifecycleScriptExtensionProvide out of the internal package wasn't enough.

Resolve #2287

See boc-tothefuture/openhab-jruby#366

Copy link
Contributor

@jpg0 jpg0 left a comment

Choose a reason for hiding this comment

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

LGTM

…blic

Signed-off-by: Jimmy Tanagra <jimmy@tanagra.id.au>
@cweitkamp cweitkamp added automation enhancement An enhancement or new feature of the Core labels Nov 12, 2021
@cweitkamp cweitkamp added this to the 3.2 milestone Nov 12, 2021
Copy link
Contributor

@cweitkamp cweitkamp left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks.

@cweitkamp cweitkamp merged commit 5d5b766 into openhab:main Nov 12, 2021
@cweitkamp cweitkamp changed the title Make LifecycleScriptExtensionProvider and its Disposable interface public [automation] Make LifecycleScriptExtensionProvider and its Disposable interface public Nov 12, 2021
@cweitkamp cweitkamp changed the title [automation] Make LifecycleScriptExtensionProvider and its Disposable interface public [automation] Change LifecycleScriptExtensionProvider and its Disposable interface to be public Nov 12, 2021
@jimtng jimtng deleted the lifecycletracker-scope branch November 12, 2021 22:56
splatch pushed a commit to ConnectorIO/copybara-hab-core that referenced this pull request Jul 12, 2023
… interface public (openhab#2565)

Signed-off-by: Jimmy Tanagra <jimmy@tanagra.id.au>
GitOrigin-RevId: 5d5b766
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation enhancement An enhancement or new feature of the Core
Projects
None yet
3 participants