felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marian grigoras <mgrig.o...@googlemail.com>
Subject How to create an immediate component with DependencyManager?
Date Fri, 22 Apr 2011 11:33:02 GMT

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)



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message