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

feat(plugins): allow config to be super class on extension #446

Merged
merged 3 commits into from
Dec 18, 2019

Conversation

claymccoy
Copy link
Contributor

This is done in order to use the following pf4j feature with a configurable extension.
"Support any interface as an ExtensionPoint" pf4j/pf4j#350

This is nice because I can extend something that is not an extension point, and even do it in safe mode. The problem is that now my extension can only have one interface. So I can't use the ConfigurableExtension directly. I can only have one interface unless pf4j is modified to allow more.
Using my one super class slot for configuration is still not ideal, but it works. It might be nice to allow some other mechanism for config other than class hierarchy or modify pf4j to handle config natively.

This is done in order to use the following pf4j feature with a configurable extension.
"Support any interface as an ExtensionPoint" pf4j/pf4j#350

This is nice because I can extend something that is not an extension point, and even do it in safe mode. The problem is that now my extension can only have one interface. So I can't use the ConfigurableExtension directly. I can only have one interface unless pf4j is modified to allow more.
Using my one super class slot for configuration is still not ideal, but it works. It might be nice to allow some other mechanism for config other than class hierarchy or modify pf4j to handle config natively.
@claymccoy
Copy link
Contributor Author

This is purposefully built on kork 6.22.2 because I am testing this inside of Orca, which doesn't easily work with any newer version of kork.

@robzienert robzienert added the ready to merge Approved and ready for merge label Dec 18, 2019
@mergify mergify bot added the auto merged label Dec 18, 2019
@mergify mergify bot merged commit e747b48 into spinnaker:master Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto merged ready to merge Approved and ready for merge
Projects
None yet
2 participants