OSGi component in AEM that is active only in specific run mode (say, publish).

Scenario
Implementing an OSGi component in AEM which is active (that runs) only in specific run modes (say, publish).

Implementation
Generally, in OSGi container (Apache felix in AEM), to get a component ‘satisfied’, all the referenced services have to be … read the rest.

OSGi component in AEM that is active only in specific run mode (say, publish).