Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Injection into AdapterProvider
Injection into AdapterProvider [message #1714854] Tue, 17 November 2015 10:11 Go to next message
Ali Karimi is currently offline Ali KarimiFriend
Messages: 30
Registered: October 2015
Member
Hey,

i have implemented an adapterprovider A by implementing org.eclipse.fx.core.adapter.AdapterProvider. Now i have another adapterprovider B which i would like to inject into adapterprovider A by using the inject annotation. Unfortunately the annotated object of type B in adapterprovider A is always null. Is there anything special to take care of when injecting into an adapterprovider, because injection of a logger by using
    @Inject
    @Log
    protected org.eclipse.fx.core.log.Logger.Logger logger;


also always yields null for the logger variable.
Anything i am missing here?

Thanks in advance

[Updated on: Tue, 17 November 2015 10:11]

Report message to a moderator

Re: Injection into AdapterProvider [message #1715038 is a reply to message #1714854] Wed, 18 November 2015 17:16 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6398
Registered: July 2009
Senior Member
AdapterProvider is an osgi service hence it is impossible to use injection - for logger you should make an ds reference to the loggerfactory service
Re: Injection into AdapterProvider [message #1715089 is a reply to message #1715038] Thu, 19 November 2015 07:39 Go to previous message
Ali Karimi is currently offline Ali KarimiFriend
Messages: 30
Registered: October 2015
Member
Shame on me Embarrassed
You are absolutely right.
Thanks
Previous Topic: JavaFX
Next Topic:e(fx)clipse runtime works on JRE8 but not JRE7
Goto Forum:
  


Current Time: Tue Jun 19 11:03:55 GMT 2018

Powered by FUDForum. Page generated in 0.01351 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top