You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Mike Hummel <mh...@mhus.de> on 2020/06/04 16:12:10 UTC
Component 'enabled' property
Hello,
there is a 'enabled' property if using @Component. In the OSGi docu the usage of this flag is not explained really good.
Is it possible to set a service to disabled and enable it optionally later in runtime or by configuration?
Background:
In tooling bundles with a lot of optional services it would be nice to enable the services if needed. This could be done by blueprints but then everything have to be defined in the blueprint - activator, modifier (possible?), deactivate and references. More comfortable is defining all this by annotations.
Is it possible to 'mix it'?
Regards,
Mike