Open ops4j-issues opened 9 years ago
Harald Wellmann commented
I made some changes in a related area a while ago, but I can't tell off of my head if that covers your problem.
Could you please try a current 1.0.0-SNAPSHOT?
If you still see the same exception, then contributing a test case is always a good way to see the problem fixed in a coming release :wink:
Krystian Panek commented
Of source, I am busy currently but I will try discover it on Monday.
Regards
Harald Wellmann commented
Postponed for lack of input.
Krystian Panek commented
I noticed your activity for preparing 1.0 release so I will try to help with this issue soon... I really care about this issue. Sorry for no reaction before. I haven't enough time for it.
Krystian Panek created PAXCDI-154
I noticed strange bug. Some hierarchy description:
MyServiceAggregator could contain MyServiceA, MyServiceB. (
@Inject
@Any
)MyServiceA does not dependent on any other services. MyServiceB could contain OtherServiceA, OtherServiceB (
@Inject
@Any
).I want to grab all my services using:
And I have two implementations of MyService:
And:
MyServiceB is injected into MyServiceAggregator only if MyServiceA exists / is available. If not, I am getting an error:
For me it is a heavy blocker. I am forced to have a workaround which is an empty implementation without any dependencies to get all working.
In documentation I found that optional injections are planned in further release. Do you have any estimate / roadmap?
Affects: 0.11.0 Fixed in: 1.1.4 Votes: 1, Watches: 4