Cris, See the explanation at http://www.computepatterns.com/43/osgi-component-in-aem-that-is-active-only-in-specific-run-mode-say-publish/.
Kind regards Wim > Op 10 mei 2018 om 21:48 heeft Cris Rockwell <[email protected]> het volgende > geschreven: > > Hi folks > > If I have a filter like the one shown below and in the link, is it possible > to set a property so it only takes effect on a certain Runmode? I would like > my filter to only run on instances having the publish run mode. > > https://sling.apache.org/documentation/the-sling-engine/filters.html > <https://sling.apache.org/documentation/the-sling-engine/filters.html> > > > @Component(service = Filter.class, > property = { > Constants.SERVICE_DESCRIPTION + "=Demo to filter incoming > requests", > EngineConstants.SLING_FILTER_SCOPE + "=" + > EngineConstants.FILTER_SCOPE_REQUEST, > Constants.SERVICE_RANKING + "=-700", > EngineConstants.SLING_FILTER_PATTERN + > "=/content/my-project/.*" > }) > > public final class OpenIDConnectFilter implements Filter { > > } > > Thanks! > Cris Rockwell > App Sys Analyst/Programmer Sr | U-M LSA Web Services > [email protected] > > >
