Re: getting rid of Contextualizable

2023-05-22 Thread Tamás Cservenák
Howdy, yes, Contextualizable, Startable, Stoppable, etc are all stuff from oldie Plexus DI that is EOL. Get rid of all these. Moreover, am really unsure you _really_ needs the container, as IMHO what you need instead is: @Inject Map macroTypes; and then just grab from that map what you need. Re

Re: getting rid of Contextualizable

2023-05-21 Thread Henning Schmiedehausen
Turns out that simply removing the method and annotating the field with `@Inject` and adding sisu-plexus solved that for me. -h On Sun, May 21, 2023 at 3:37 PM Henning Schmiedehausen < henn...@schmiedehausen.org> wrote: > I have a plugin where the mojo implements Contextualizable and it does >

getting rid of Contextualizable

2023-05-21 Thread Henning Schmiedehausen
I have a plugin where the mojo implements Contextualizable and it does this: @Override public void contextualize(final Context context) throws ContextException { this.container = (PlexusContainer) context.get(PlexusConstants.PLEXUS_KEY); } Basically, this gives me