Hello,
i want to use the DependencyManager to register a component which does not
offer any services for other components, but only listens to events and
displays them. With the registration code shown below, the events arrive at
the component, but the start(), stop() methods are never called.
According to the spec, the component should have immediate=true to be
activated even if not needed by someone else.
How can I achieve this using the DependencyManager?
Component component = mDependencyManager.createComponent()
.setInterface(EventHandler.class.getName(), eventProps)
.setImplementation(MyMonitorConsumer.class)
.add(mDependencyManager.createConfigurationDependency().setPid(pid)
);
Thanks,
Marian