Package de.odysseus.calyxo.control.conf

Examples of de.odysseus.calyxo.control.conf.ActionConfig


    }   
    ActionsConfig actionsConfig = this.config.getActionsConfig();
    if (actionsConfig != null) {
      Iterator configs = actionsConfig.getActionConfigs();
      while (configs.hasNext()) {
        ActionConfig actionConfig = (ActionConfig)configs.next();
        Iterator exceptionConfigs = actionConfig.getExceptionHandlerConfigs();
        while (exceptionConfigs.hasNext()) {
          addHandler((ExceptionHandlerConfig)exceptionConfigs.next());
        }
      }
    }
View Full Code Here


    // Instantiate and initialized action chains
    ActionsConfig actionsConfig = this.config.getActionsConfig();
    if (actionsConfig != null) {
      Iterator configs = actionsConfig.getActionConfigs();
      while (configs.hasNext()) {
        ActionConfig actionConfig = (ActionConfig)configs.next();
        String className = actionConfig.getClassName();
        Class clazz = null;
        if (className == null) {
          clazz = pluginContext.getDefaultActionClass();
        } else {
          clazz = context.getClassLoader().loadClass(className);
        }
        Action action = (Action)clazz.newInstance();
        action.init(actionConfig, context);
        Command command = chain(actionConfig.getFilterConfigs(), action);
        ActionCommand item = new ActionCommand(actionConfig, command);
        commands.put(actionConfig.getPath(), item);
      }
    }
  }
View Full Code Here

TOP

Related Classes of de.odysseus.calyxo.control.conf.ActionConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.