Package org.soybeanMilk.core.os

Examples of org.soybeanMilk.core.os.ConvertableObjectSource


    Configuration cfg=new ConfigurationParser().parse(
        "example/"+Constants.DEFAULT_CONFIG_FILE);
   
    Executor executor=new DefaultExecutor(cfg);
   
    ConvertableObjectSource os = new HashMapObjectSource();
   
    os.set("helloTo", "mars");
    os.set("helloRepeat", 3);
   
    printDiv();
    executor.execute("helloActionXml", os);
   
    printDiv();
View Full Code Here


    Configuration cfg=new ConfigurationParser().parse(
        "example/"+Constants.DEFAULT_CONFIG_FILE);
   
    Executor executor=new DefaultExecutor(cfg);
   
    ConvertableObjectSource os = new HashMapObjectSource();
   
    os.set("helloTo", "friend");
    os.set("helloRepeat", 3);
   
    os.set("genericStringInput", "11");
    os.set("genericStringArrayInput", new String[]{"11", "22", "33"});
   
    printDiv();
    executor.execute("helloXml", os);
   
    printDiv();
View Full Code Here

    cfg.addExecutable(action);
   
    //创建执行器
    Executor executor=new DefaultExecutor(cfg);
   
    ConvertableObjectSource os = new HashMapObjectSource(new DefaultGenericConverter());
   
    //设置参数
    os.set(argKey_hello_to, "mars");
    os.set(argKey_hello_repeat, 3);
   
    //执行
    executor.execute(actionName, os);
  }
View Full Code Here

    Configuration cfg=new ConfigurationParser().parse(
        "example/"+Constants.DEFAULT_CONFIG_FILE);
   
    Executor executor=new DefaultExecutor(cfg);
   
    ConvertableObjectSource os = new HashMapObjectSource();
   
    os.set("helloTo", "mars");
    os.set("helloRepeat", 3);
   
    printDiv();
    executor.execute("helloActionXml", os);
   
    printDiv();
View Full Code Here

  {
    Configuration cfg=new ConfigurationParser().parse("example/"+Constants.DEFAULT_CONFIG_FILE);
   
    Executor executor=new DefaultExecutor(cfg);
   
    ConvertableObjectSource os = new HashMapObjectSource();
   
    os.set("helloTo", "mars");
    os.set("helloRepeat", 3);
   
    executor.execute("helloAction", os);
  }
View Full Code Here

  protected Executable executeWithInteceptor(Executable executable, ObjectSource objSource)
      throws ExecuteException
  {
    if(objSource instanceof ConvertableObjectSource)
    {
      ConvertableObjectSource cvtObjSource=(ConvertableObjectSource)objSource;
     
      if(cvtObjSource.getGenericConverter() == null)
        cvtObjSource.setGenericConverter(getConfiguration().getGenericConverter());
    }
   
    Interceptor itptInfo = getConfiguration().getInterceptor();
   
    //保存执行语境信息
View Full Code Here

TOP

Related Classes of org.soybeanMilk.core.os.ConvertableObjectSource

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.