-
-
Notifications
You must be signed in to change notification settings - Fork 719
JSR223 mention lifecycle, media and provider presets, scriptLoaded and scriptUnloaded functions #2567
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
base: main
Are you sure you want to change the base?
Conversation
1c96144
to
746786d
Compare
✅ Thanks for your pull request to the openHAB documentation! The result can be previewed at the URL below (this comment and the preview will be updated if you add more commits).Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
746786d
to
92385ef
Compare
✅ Thanks for your pull request to the openHAB documentation! The result can be previewed at the URL below (this comment and the preview will be updated if you add more commits).Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Thanks for your pull request to the openHAB documentation! The result can be previewed at the URL below (this comment and the preview will be updated if you add more commits).Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
a09886c
to
b1f7fa7
Compare
Now includes Nashorn example. |
The current proposed change is correct, but only part of the truth. My understanding is that if a class public List<String> getDefaultPresets() {
List<String> defaultPresets = new ArrayList<>();
for (ScriptExtensionProvider provider : scriptExtensionProviders) {
defaultPresets.addAll(provider.getDefaultPresets());
}
return defaultPresets;
} That is, the |
5a27a98
to
a13b13b
Compare
Besides, one of the presets, which is loaded without |
7d1cde9
to
1923155
Compare
I added also the |
1923155
to
3e8ae1f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@florian-h05 please check the content.
configuration/jsr223.md
Outdated
|
||
#### `lifecycle` Preset (`importPreset` not required) | ||
|
||
It provides a mechanism to execute code, when the input file is deleted. Modifying a file deletes it and creates it again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2nd sentence has be in the next line. (make sure the first sentence doesn't have a trailing space then.
a23e4f7
to
cadce01
Compare
cadce01
to
bddb4cd
Compare
I have described also the |
88f694c
to
c2d6325
Compare
bf4b509
to
a9b1964
Compare
f27cdec
to
a5603b2
Compare
…d scriptUnloaded functions
a5603b2
to
d68ff70
Compare
I add example only for Groovy, as I do know how to use it in the other automation add-ons. Besides, the other rule engines provide other ways for the same functionality:
script_unloaded
in JRuby, and for others I do not know if the functionality is from openhab-core, or from the add-on.