Package de.odysseus.calyxo.control.conf

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


   * @return linked action chain
   * @throws Exception
   */
  private Command chain(Iterator configs, Action last) throws Exception {
    if (configs.hasNext()) {
      FilterConfig config = (FilterConfig)configs.next();
      Class clazz = null;
      if (config.getName() != null) {
        clazz = pluginContext.getFilterClass(config.getName());
        if (clazz == null) {
          throw new ConfigException("Unknown filter name in '" + config.toInlineString() + "'");
        }
      } else {
        clazz = context.getClassLoader().loadClass(config.getClassName());
      }
      Filter filter = (Filter)clazz.newInstance();
      filter.init(config, context);
      return new FilteredCommand(config, filter, chain(configs, last));
    } else {
View Full Code Here


  /*
   * (non-Javadoc)
   * @see de.odysseus.calyxo.forms.FormsSupport#lookupFormName(java.lang.String)
   */
  protected String lookupFormName(String action) {
    FilterConfig filter = getFilterConfig(action);
    return filter == null ? null : filter.getParamConfig("form").getValue();
  }
View Full Code Here

TOP

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

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.