Package org.soybeanMilk.core.exe.support

Examples of org.soybeanMilk.core.exe.support.ObjectResolver


    if(resolver.indexOf('.') > -1)
    {
      try
      {
        Class<?> rc=SbmUtils.narrowToClass(nameToType(resolver));
        invoke.setResolver(new ObjectResolver(null, rc));
       
        classResolver=true;
      }
      catch(Exception e)
      {
View Full Code Here


  {
    Arg[] args=new Arg[]{
        new ValueArg("aaa"),
        new ValueArg("bbb"),
    };
    Resolver rp=new ObjectResolver(new TestResolver());
   
    Invoke re=new Invoke("test", rp,  "test1", args, RESULT_KEY);
   
    Assert.assertEquals(re.getName(), "test");
    Assert.assertEquals(re.getResultKey(), RESULT_KEY);
View Full Code Here

    Arg[] args=new Arg[]{
        new ValueArg("aaa"),
        new ValueArg("bbb"),
    };
   
    Resolver rp=new ObjectResolver(TestResolver.class);
   
    Invoke re=new Invoke("test", rp, "test1", args, RESULT_KEY);
   
    Assert.assertEquals(re.getName(), "test");
    Assert.assertEquals(re.getResultKey(), RESULT_KEY);
View Full Code Here

  {
    Arg[] args=new Arg[]{
        new KeyArg("arg0"),
        new KeyArg("arg1"),
    };
    Resolver rp=new ObjectResolver(new TestResolver());
   
    Invoke invoke=new Invoke("test", rp, "test1", args, RESULT_KEY);
   
    ObjectSource os=new HashMapObjectSource(new DefaultGenericConverter());
    os.set("arg0", "arg0");
View Full Code Here

    {
      Arg[] args=new Arg[]{
          new KeyArg("arg", Double.class),
        };
     
      Resolver rp=new ObjectResolver(new TestResolver());
     
      Invoke invoke=new Invoke("test", rp, "sameMethod", args, RESULT_KEY);
     
      ObjectSource os=new HashMapObjectSource(new DefaultGenericConverter());
      os.set("arg", "33");
     
      invoke.execute(os);
     
      Assert.assertEquals("Double", os.get(RESULT_KEY));
    }
   
    {
      Arg[] args=new Arg[]{
          new KeyArg("arg", Integer.class),
        };
     
      Resolver rp=new ObjectResolver(new TestResolver());
     
      Invoke invoke=new Invoke("test", rp, "sameMethod", args, RESULT_KEY);
     
      ObjectSource os=new HashMapObjectSource(new DefaultGenericConverter());
      os.set("arg", "33");
View Full Code Here

  {
    Arg[] args=new Arg[]{
        new KeyArg("arg"),
      };
   
    Resolver rp=new ObjectResolver(new TestResolver());
   
    Invoke invoke=new Invoke("test", rp, "sameMethod", args, RESULT_KEY);
   
    ObjectSource os=new HashMapObjectSource(new DefaultGenericConverter());
    os.set("arg", "33");
View Full Code Here

    {
      Arg[] args=new Arg[]{
          new ValueArg(33D),
        };
     
      Resolver rp=new ObjectResolver(new TestResolver());
     
      Invoke invoke=new Invoke("test", rp, "sameMethod", args, RESULT_KEY);
     
      ObjectSource os=new HashMapObjectSource(new DefaultGenericConverter());
     
      invoke.execute(os);
     
      Assert.assertEquals("Double", os.get(RESULT_KEY));
    }
   
    {
      Arg[] args=new Arg[]{
          new ValueArg(33),
        };
     
      Resolver rp=new ObjectResolver(new TestResolver());
     
      Invoke invoke=new Invoke("test", rp, "sameMethod", args, RESULT_KEY);
     
      ObjectSource os=new HashMapObjectSource(new DefaultGenericConverter());
      os.set("arg", "33");
View Full Code Here

  {
    Arg[] args=new Arg[]{
        new ValueArg(33, int.class),
      };
   
    Resolver rp=new ObjectResolver(new TestResolver());
   
    Invoke invoke=new Invoke("test", rp, "sameMethod", args, RESULT_KEY);
   
    ObjectSource os=new HashMapObjectSource(new DefaultGenericConverter());
    os.set("arg", "33");
View Full Code Here

  {
    Arg[] args=new Arg[]{
        new ValueArg(null, Integer.class),
      };
   
    Resolver rp=new ObjectResolver(new TestResolver());
   
    Invoke invoke=new Invoke("test", rp, "sameMethod", args, RESULT_KEY);
   
    ObjectSource os=new HashMapObjectSource(new DefaultGenericConverter());
   
View Full Code Here

    Arg[] args=new Arg[]
        {
          new KeyArg("arg0", JavaBeanSub.class)
        };
   
    Invoke invoke=new Invoke(null, new ObjectResolver(new SubGenericResolverImpl<JavaBean>()), "resolveBase", args, "result");
   
    Map<String, Object> src=new HashMap<String, Object>();
    src.put("id", 1);
    src.put("name", "generic");
    src.put("age", 5);
View Full Code Here

TOP

Related Classes of org.soybeanMilk.core.exe.support.ObjectResolver

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.