Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Manually triggering a class with injections? (How to manually trigger a classes method, which uses injections.)
Manually triggering a class with injections? [message #955072] Tue, 23 October 2012 09:38 Go to previous message
Alex Kipling is currently offline Alex Kipling
Messages: 211
Registered: July 2012
Senior Member
I have a class, which get a MApplication injected. It is a Handler. I want to trigger the Handler's methods manually.

Problem:
When I instantiate the Handler manually from another class - the MApplication is null. The class which I trigger the Handler from allready has an MApplication injected, so it is not a lifecycle problem.

Question:
How can I trigger a method in a class, which has @Inject annotated methods?


 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Logger-Layout?
Next Topic:Does e4 support opening a view in a dialog shell?!
Goto Forum:
  


Current Time: Sun May 19 07:18:22 EDT 2013

Powered by FUDForum. Page generated in 0.01557 seconds