예제 #1
0
  private void _process(String key, String[] classes, LifecycleEvent lifecycleEvent)
      throws ActionException {

    for (String className : classes) {
      if (Validator.isNull(className)) {
        return;
      }

      if (_log.isDebugEnabled()) {
        _log.debug("Process event " + className);
      }

      LifecycleAction lifecycleAction = (LifecycleAction) InstancePool.get(className);

      lifecycleAction.processLifecycleEvent(lifecycleEvent);
    }

    if (Validator.isNull(key)) {
      return;
    }

    for (LifecycleAction lifecycleAction : _instance._getLifecycleActions(key)) {

      lifecycleAction.processLifecycleEvent(lifecycleEvent);
    }
  }
예제 #2
0
  private void _processEvent(LifecycleAction lifecycleAction, LifecycleEvent lifecycleEvent)
      throws ActionException {

    lifecycleAction.processLifecycleEvent(lifecycleEvent);
  }