private <M extends Object & PPSReportColumnService> boolean serviceEnabled(M service) { RunIfEnabled runIfEnabled = service.getClass().getAnnotation(RunIfEnabled.class); if (runIfEnabled == null) { return true; } for (String pluginIdentifier : runIfEnabled.value()) { if (!PluginUtils.isEnabled(pluginIdentifier)) { return false; } } return true; }
@SuppressWarnings("deprecation") protected boolean isEnabledOrEnabling(final String pluginIdentifier) { return PluginUtils.isEnabledOrEnabling(pluginIdentifier); }