Hi, There is a proposal ready in OAK-9132 [0] that introduces the concept of feature toggles [1]. A FeatureToggle is basically a boolean value that controls whether some new feature is available. The implementation uses the Oak Whiteboard to register a feature toggle. It is then up to another bundle to control the state of the feature toggles at initialization and/or runtime.
A very simple implementation that wires feature toggles to system properties is presented in OAK-9132. More sophisticated implementations that talk to a central feature toggle service are also easy to implement with an OSGi component that keeps track of registered feature toggles. Feedback welcome. Regards Marcel [0] https://issues.apache.org/jira/browse/OAK-9132 [1] https://martinfowler.com/articles/feature-toggles.html
