Determine runmode in Adobe CQ
问题 How do I programmatically know which run-mode the instance is running? I created a custom tag that provides the config depending on the instance run-mode, but I can not determine the current run-mode. I found a method that returns a list of run-mods instance: SlingSettings settings = ...get from BundleContext... Set<String> currentRunModes = settings.getRunModes(); But I can not get the objects SlingSettings or BundleContext. How can I get these objects or perhaps there is another way to get