Browse Source

fix #1406 add hasViewHelper

Shinsuke Sugaya 7 years ago
parent
commit
be86e7ed0a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/main/java/org/codelibs/fess/util/ComponentUtil.java

+ 4 - 0
src/main/java/org/codelibs/fess/util/ComponentUtil.java

@@ -438,6 +438,10 @@ public final class ComponentUtil {
         }
     }
 
+    public static boolean hasViewHelper() {
+        return SingletonLaContainerFactory.getContainer().hasComponentDef(VIEW_HELPER);
+    }
+
     public static boolean hasQueryHelper() {
         return SingletonLaContainerFactory.getContainer().hasComponentDef(QUERY_HELPER);
     }