-
-
Notifications
You must be signed in to change notification settings - Fork 560
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
Create Extensionpoint in plugin and access that in a different one #97
Comments
Check to see that |
Testplugin idx file:
Command Plugin idx file:
Log File: Search for "WARN" to find the outputs: http://pastebin.com/Q3cH5uL3 Currently the plugin zips look like this:
|
I don't like that you have duplicate lines in I will investigate the log file and I will come with conclusions. |
If you need the sources to investigate it better: https://bitbucket.org/lyze237/darkowlbot/src/15e6cb7902db197cc812d41b055934e70219e9a0/plugins?at=dev |
If I search after
If you found
so it's OK The problem is why
|
CommandExtension is used by both plugins so it needs to be loaded by their two classloaders? (Or am I wrong here?) For clarification, those are the two files: CommandPlugin.CommandExtension
TestPlugin.TestPlugin
|
The idea is : if I don't know if I can create a defense (a warning in log) to highlight this type of problems. Please make the modifications and tell me if the problem disappears. |
Ah oh god I forgot that exists. |
Good. Please close the issue if the problem is resolved. |
Thanks again for the quick help! |
No problem |
Dear Developer,
I'm currently struggling with the following thing:
I have a plugin which creates some extension points for other plugins.
Now I want those other plugins to use those extension points and use those plugins then inside my project.
E.g.:
Plugin CommandProvider: Has a interface:
public interface CommandExtension extends ExtensionPoint
Plugin TestPlugin: Has a plugin
public class TestPlugin extends Plugin
which has a class inside@Extension public static class TestExtension implements CommandExtension
Now I want to access every CommandExtension from my CommandProvider:
This however returns always 0 Command Extension Points.
The following test however says that the plugin has the proper extension point:
This produces the following output:
Do I do something wrong here?
The text was updated successfully, but these errors were encountered: