Hi,

I have some trouble understanding the correlation between FileInstall
and ManagedServices.

This is an activator:
        public void start(BundleContext context) throws Exception {
                MyImpl impl = new MyImpl(); //implements two interfaces, one of
which managedservice

                Properties properties = new Properties();
                properties.put(Constants.SERVICE_PID, "myservicepid");
                String[] interfaces = { ManagedService.class.getName(),
                                MyInterface.class.getName() };
                context.registerService(interfaces, impl, properties);
        }

and under my fileinstall managed directory I hava myservicepid.cfg
with key-value pairs in it.

The question is when the services are registered and available to listeners.
- when the activator is started
- after fileinstall is calls updated(Dictionary) on the ManagedService
(using ConfigurationAdmin)

should the implementation check whether is has been configured or not,
or does felix do this for me? If not, is there a way to only register
myImpl as "MyInterface" after it has been configured?

Regards,
Leen

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to