Example #1
0
 public static Set<DeletionHook> getHooks(KnowledgeBase kb) {
   DeletionHookFrameStore frameStore = getFrameStore(kb, false);
   if (frameStore == null) {
     return null;
   } else {
     return frameStore.getHooks();
   }
 }
Example #2
0
 public static void addDeletionHook(KnowledgeBase kb, DeletionHook hook) {
   DeletionHookFrameStore frameStore = getFrameStore(kb, true);
   frameStore.addHook(hook);
 }
Example #3
0
 public static void removeDeletionHook(KnowledgeBase kb, DeletionHook hook) {
   DeletionHookFrameStore frameStore = getFrameStore(kb, false);
   if (frameStore != null) {
     frameStore.removeHook(hook);
   }
 }