コード例 #1
0
 public IndexMultiKey[] getNamedWindowIndexes(String windowName) {
   NamedWindowProcessor processor = processors.get(windowName);
   if (processor == null) {
     return null;
   }
   return processor.getProcessorInstance(null).getIndexDescriptors();
 }
コード例 #2
0
  public void removeProcessor(String name) {
    NamedWindowProcessor processor = processors.get(name);
    if (processor != null) {
      processor.destroy();
      processors.remove(name);

      if (!observers.isEmpty()) {
        NamedWindowLifecycleEvent theEvent =
            new NamedWindowLifecycleEvent(
                name, processor, NamedWindowLifecycleEvent.LifecycleEventType.DESTROY);
        for (NamedWindowLifecycleObserver observer : observers) {
          observer.observe(theEvent);
        }
      }
    }
  }