Comments (3)
In the meantime, I solved it with a reflection-hack. i added folling method to my own PluginManager:
private PluginClasspath getPluginClasspath() {
try {
Class<? extends JarPluginManager> thisClazz = getClass();
Field field = thisClazz.getField("pluginClasspath");
field.setAccessible(true);
PluginClasspath cp = (PluginClasspath) field.get(this);
return cp;
} catch (NoSuchFieldException | SecurityException | IllegalArgumentException | IllegalAccessException ex) {
throw new RuntimeException("Cannnot access classpath variable!", ex);
}
}
But I still vote for changing the implementation...
from pf4j.
See eefe234. Please tell me if this commit help you.
from pf4j.
Yes, looks good. My reflection-hack is no longer needed. thanks.
from pf4j.
Related Issues (20)
- Support Kotlin KSP with PF4J HOT 3
- Getting extensions by class when plugin is not started HOT 6
- Question: How to add extension point from another plugin for another plugin? HOT 3
- Feature request: Passing context variables HOT 2
- working on setting up a plugin store utilizing pf4j for a SaaS platform HOT 6
- define the execution sequence of extensions across the plugins HOT 7
- Is pf4j compatible with arrch64 architecture? HOT 7
- Method AbstractPluginManager#loadPlugins logs and return silently for resolve plugins errors
- enhance the ModuleclassLoader to support dependency class load HOT 1
- pf4j vs dependency injection framework HOT 4
- v3.11.0 plugin status canβt change from STARTED to DISABLED. HOT 2
- pf4j for python or typescript? HOT 1
- Error due to incorrect dependency update after plugin deletion HOT 13
- Question: Migrate from other plugin system HOT 5
- How can I access the controller of the plugin inside the core HOT 2
- Plugin State Persistence HOT 3
- Upgrade to 3.11 not possible: "final" keyword on AbstractPluginManager.getResolveRecoveryStrategy() prevents use of dependency injection using Jakarta CDI HOT 2
- Can It be used in SCALA HOT 1
- how to debug the zip plugin loaded by pf4j-spring with idea ? HOT 3
- When plugin use serviceloader(spi)? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pf4j.