Examples of ActionInfo


Examples of org.nutz.mvc.ActionInfo

        ActionChainMaker maker = createChainMaker(config, mainModule);

        /*
         * 创建主模块的配置信息
         */
        ActionInfo mainInfo = Loadings.createInfo(mainModule);

        /*
         * 准备要加载的模块列表
         */
        // TODO 为什么用Set呢? 用List不是更快吗?
        Set<Class<?>> modules = Loadings.scanModules(mainModule);

        if (modules.isEmpty()) {
            if (log.isWarnEnabled())
                log.warn("None module classes found!!!");
        }

        int atMethods = 0;
        /*
         * 分析所有的子模块
         */
        for (Class<?> module : modules) {
            ActionInfo moduleInfo = Loadings.createInfo(module).mergeWith(mainInfo);
            for (Method method : module.getMethods()) {
                /*
                 * public 并且声明了 @At 的函数,才是入口函数
                 */
                if (!Modifier.isPublic(method.getModifiers())
                    || !method.isAnnotationPresent(At.class))
                    continue;
                // 增加到映射中
                ActionInfo info = Loadings.createInfo(method).mergeWith(moduleInfo);
                info.setViewMakers(makers);
                mapping.add(maker, info, config);
                atMethods ++;
            }

            // 记录pathMap
View Full Code Here

Examples of org.pentaho.platform.engine.core.solution.ActionInfo

  }

  public ActionComponent( final String actionString, final String instanceId, final int outputPreference,
      final IPentahoUrlFactory urlFactory, final List messages ) {
    super( urlFactory, messages, null );
    ActionInfo info = ActionInfo.parseActionString( actionString );
    if ( info != null ) {
      solutionName = info.getSolutionName();
      actionPath = info.getPath();
      actionName = info.getActionName();
    }
    setSourcePath( solutionName + File.separator + actionPath );
    this.instanceId = instanceId;
    this.outputPreference = outputPreference;
  }
View Full Code Here

Examples of org.pentaho.platform.engine.core.solution.ActionInfo

          String parameterName = parameterNode.getName();
          String parameterValue = parameterNode.getText();
          // String type = parameterNode.selectSingleNode( "@type" );
          // if( "xml-data".equalsIgnoreCase( ) )
          if ( "action".equals( parameterName ) ) { //$NON-NLS-1$
            ActionInfo info = ActionInfo.parseActionString( parameterValue );
            solutionName = info.getSolutionName();
            actionPath = info.getPath();
            actionName = info.getActionName();
          } else if ( "component".equals( parameterName ) ) { //$NON-NLS-1$
            component = parameterValue;
          } else {
            parameters.put( parameterName, parameterValue );
          }
View Full Code Here

Examples of org.pentaho.platform.engine.core.solution.ActionInfo

    this.definitionPath = definitionPath;
    if ( xslName == null ) {
      // use a default XSL
      xslName = "FilterPanelDefault.xsl"; //$NON-NLS-1$
    }
    ActionInfo info = ActionInfo.parseActionString( definitionPath );
    if ( info != null ) {
      setSourcePath( info.getSolutionName() + File.separator + info.getPath() );
    }
    this.xslName = xslName;
    defaultValues = new HashMap();
  }
View Full Code Here

Examples of org.pentaho.platform.engine.core.solution.ActionInfo

   *          The messages list for any logger messages
   */
  public WidgetGridComponent( final String definitionPath, final IPentahoUrlFactory urlFactory, final List messages ) {
    super( urlFactory, messages, null );
    this.definitionPath = definitionPath;
    ActionInfo info = ActionInfo.parseActionString( definitionPath );
    if ( info != null ) {
      setSourcePath( info.getSolutionName() + File.separator + info.getPath() );
    }
    setXsl( "text/html", "DialWidget.xsl" ); //$NON-NLS-1$ //$NON-NLS-2$   
  }
View Full Code Here

Examples of org.pentaho.platform.engine.core.solution.ActionInfo

    super( urlFactory, messages, null );
    this.type = type;
    this.definitionPath = definitionPath;
    this.width = width;
    this.height = height;
    ActionInfo info = ActionInfo.parseActionString( definitionPath );
    if ( info != null ) {
      setSourcePath( info.getSolutionName() + File.separator + info.getPath() );
    }
    // Set the XSL file to be used to generate the HTML
    setXsl( "text/html", "DialWidget.xsl" ); //$NON-NLS-1$ //$NON-NLS-2$
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.