maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kristian Rosenvold <kristian.rosenv...@gmail.com>
Subject Inject from multiple interfaces in plexus ?
Date Wed, 08 Jan 2014 20:03:30 GMT
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 ?

Kristian

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message