GeezerVison is showing github.com — Load extensions from extra classpath by m-dzianishchyts · Pull Request #88 · dflib/jjava
Conversation
What does this PR do?
Adds extension auto-loading from JJAVA_CLASSPATH at kernel startup by resolving globs and installing extensions after kernel creation.
Fixes #71.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Thanks for the PR. A few comments:
- Need to think of a proper consistent place for extension loading. E.g., loading from the main classpath happens inside
JavaKernel constructor, this one happens in the builder (and likely in the wrong one... If someone extends JavaKernelBuilder, they'd lose this functionality). I guess let's keep it where it is, and I will think of it some more
- We need unit tests demonstrating the original problem (and the fix here). We must keep Improving the test coverage in general. Otherwise making any changes is very risky.
|
m-dzianishchyts reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
loading from the main classpath happens inside JavaKernel constructor, this one happens in the builder
Maybe we can even combine the two, and load everything once using a proper ClassLoader with the extra classpath
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
# Conflicts:
# jjava-kernel/src/main/java/org/dflib/jjava/kernel/JavaKernel.java
|
The PR is in. I really appreciate the kernel tests that don't require Docker and still allow to play with extensions.
|
m-dzianishchyts reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Extension loading from classpath
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.