Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Injection Scope (Which classes are searched in the injection phase)
Injection Scope [message #986409] Tue, 20 November 2012 05:53 Go to previous message
Michael Behrisch is currently offline Michael Behrisch
Messages: 6
Registered: October 2012
Junior Member
Hello,

I think this could be a stupid question, but I don't find it in the forum:

I have a number of plugins that are injected into the main/core framework.
In each of the plugins the injected class is referenced via the fragment and
its connection to the core's part id. This works all perfectly... But here comes the problem:

Class A is injected into the framework and all @Inject, etc. annotations are resolved.
Whenever class A contains another class B,C,D,.. How do I get them also to be resolved?

E.g. Class B either gets an own context object or the parent context and sets a variable. Now the interested class C does not receive it via the @Named annotation.
Where is my missunderstanding?!?

Maybe to make it more abstract: How do I tell the Eclipse injection mechanism to resolved arbitrary other classes?

Thanks in advance...
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Where to register central event redistributor?
Next Topic:org.eclipse.ui.PartInitException
Goto Forum:
  


Current Time: Tue May 21 20:50:01 EDT 2013

Powered by FUDForum. Page generated in 0.01588 seconds