Пример #1
0
 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;
 }
Пример #2
0
 @SuppressWarnings("deprecation")
 protected boolean isEnabledOrEnabling(final String pluginIdentifier) {
   return PluginUtils.isEnabledOrEnabling(pluginIdentifier);
 }