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

New Feature: Plugin lookup in execution contexts #251

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

byteit101
Copy link

As execute blocks in languages (specifically Ruby that I'm interested in) can't declare java @Component annotations to access other maven plugins, this feature would allow a target language to use a new method on the ExecutionContex to retreive instances from the IoC container.

Would need a bit of polish, but I'm gauging interest before I spend time finishing this.

@jvanzyl
Copy link
Contributor

jvanzyl commented Nov 22, 2022

Plugins generally don't inject/compose other plugins but I see nothing wrong with general site injection. Though I'd use the JSR330 annotations (@javax.inject.Inject) instead of the ones we made up in Maven-land (@component).

@byteit101
Copy link
Author

byteit101 commented Nov 24, 2022

I've made some progress, including towards fixing #252, but I've temporarily given up due to takari/takari-lifecycle#109 (So I probably have some dumb syntax errors in this right now)

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

Successfully merging this pull request may close these issues.

2 participants