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

Add the ability to have "optionally required" plugins #30

Open
adrienlauer opened this issue Apr 1, 2015 · 3 comments
Open

Add the ability to have "optionally required" plugins #30

adrienlauer opened this issue Apr 1, 2015 · 3 comments

Comments

@adrienlauer
Copy link
Contributor

In SeedStack, we would like to retrieve a plugin from another plugin only if it's present in the classpath and active. Like an "optional require". An "optional dependent" is something to be considered too, but we don't need this atm.

The kernel would provide the plugin in the InitContext only if it's enabled (or null if it's not).

@adrienlauer adrienlauer changed the title Add the ability to have optional required plugin Add the ability to have "optionally required" plugins Apr 1, 2015
@ejemba
Copy link
Member

ejemba commented Apr 1, 2015

@adrienlauer Yes this is something we can add in the next version.

@pith pith added this to the 1.0 milestone Oct 7, 2015
@pith
Copy link
Member

pith commented Mar 28, 2016

I can work on this one, but do you have an idea about the API ?

I'm not sure that adding two additional methods optionallyRequiredPlugins() and optionallyDependentPlugins().

@ejemba
Copy link
Member

ejemba commented Feb 25, 2017

@adrienlauer is that something still needed ?
I think the Optional java8 can help on this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants