Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Problem with IEventBroker (Problem with IEventBroker)
Problem with IEventBroker [message #734956] Mon, 10 October 2011 10:18 Go to previous message
Beat Schaller is currently offline Beat Schaller
Messages: 31
Registered: July 2009
Member
I am trying to use the EventBroker in my sample application.

I implemented a simple OSGI service. An initialization of the EventBroker over injection doesn't work. So I assume I have to initialize it the standard way in the constructor of my service. Correct?

Bundle bundle = FrameworkUtil.getBundle(getClass());
BundleContext bundleContext = bundle.getBundleContext();
IEclipseContext eclipseCtx = EclipseContextFactory.getServiceContext(bundleContext);
eventBroker = (IEventBroker) eclipseCtx.get(IEventBroker.class.getName());

I get the following Exception:
org.eclipse.e4.core.di.InjectionException: Unable to process "EventBroker.logger": no actual value was found for the argument "Logger"

what's the problem??
Thx for any hints
Beat
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:messages_de_DE.properties cannot be load
Next Topic:WebDAV and SFS
Goto Forum:
  


Current Time: Sat May 25 19:45:30 EDT 2013

Powered by FUDForum. Page generated in 0.07682 seconds