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

Tweak ScriptedRuleProvider slightly #3170

Merged
merged 2 commits into from
Nov 24, 2022

Conversation

ccutrer
Copy link
Contributor

@ccutrer ccutrer commented Nov 21, 2022

extend AbstractProvider so that it doesn't need to re-implement managing listeners, and have it implement ManagedProvider

just extend AbstractProvider so that it doesn't need to re-implement
managing listeners

Signed-off-by: Cody Cutrer <[email protected]>
@ccutrer ccutrer requested a review from a team as a code owner November 21, 2022 23:15
there's nothing that says ManagedProvider has to be backed by storage,
just that they should be able to add and remove elements

Since that's exactly what ScriptedRuleProvider does, might as well
have it conform to the interface.

Signed-off-by: Cody Cutrer <[email protected]>
Copy link
Member

@J-N-K J-N-K 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.

@J-N-K J-N-K added the enhancement An enhancement or new feature of the Core label Nov 24, 2022
@J-N-K J-N-K added this to the 3.4 milestone Nov 24, 2022
@J-N-K J-N-K merged commit f0875a4 into openhab:main Nov 24, 2022
@ccutrer ccutrer deleted the tweak-scripted-rule-provider branch November 29, 2022 16:15
@wborn wborn changed the title tweak ScriptedRuleProvider slightly Tweak ScriptedRuleProvider slightly Nov 30, 2022
splatch pushed a commit to ConnectorIO/copybara-hab-core that referenced this pull request Jul 12, 2023
* tweak ScriptedRuleProvider slightly

just extend AbstractProvider so that it doesn't need to re-implement
managing listeners

Signed-off-by: Cody Cutrer <[email protected]>

* have ScriptedRuleProvider implement ManagedProvider

there's nothing that says ManagedProvider has to be backed by storage,
just that they should be able to add and remove elements

Since that's exactly what ScriptedRuleProvider does, might as well
have it conform to the interface.

Signed-off-by: Cody Cutrer <[email protected]>
GitOrigin-RevId: f0875a4
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