cziegeler commented on PR #41: URL: https://github.com/apache/sling-org-apache-sling-event/pull/41#issuecomment-2798743037
I think a slightly better solution would be to have an *optional* dependency (reference) on a Condition. By default this is the TRUE condition, but can be changed through OSGi configuration. Then in the code you just need a NULL check of that reference. This might need to make an adjustment to the Apache Felix HC to also register a condition (which I think is a valuable addition anyway). But this way we keep the JobManager free of any reference to HCs -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@sling.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org