On 8 Jan 2014, at 20:03, Kristian Rosenvold <[email protected]> 
wrote:

> With spring, you can say:
> 
> @Component
> class X implements Y,Z
> 
> And at call site:
> 
> @Inject
> private Y y;
> 
> @Inject
> private Z z;
> 
> And expect (scope dependent) to get the same instance of X in both y and z.
> 
> Can I achieve this in m3.2 core ?

Yes, but you’d need to use JSR330 @Named instead of Plexus @Component:

        http://wiki.eclipse.org/Sisu/PlexusMigration

> Kristian


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to