class YarServerDemo implements YarService {

    public String hello(String name) {
        System.out.println(name + " invoked rpc service");
        return "hello " + name;
    }

    // local
    public static void main(String[] args) throws InterruptedException {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:motan_demo_server_yar.xml");
        System.out.println("yar server start...");
        Thread.sleep(Long.MAX_VALUE);

    }

    public void testVoid() {
        System.out.println("in void");
    }

    public String testArgVoid() {
        System.out.println("in arg void");
        return "in arg void";
    }

    public String testString(String arg) {
        System.out.println("in String");
        return arg;

    }

    public int testInt(int i) {
        System.out.println("in int");
        return i;
    }

    public Integer testInteger(Integer integer) {
        System.out.println("in Integer");
        return integer;
    }

    public boolean testBoolean(boolean b) {
        System.out.println("in boolean");
        return b;
    }

    public long testLong(long l) {
        System.out.println("in long");
        return l;
    }

    public float testFloat(Float f) {
        return f;
    }

    public double testDouble(Double d) {
        return d;
    }

    public List<Object> testList(List<Object> list) {
        System.out.println("in testlist");
        List<Object> retlist = new ArrayList<Object>(list);
        Collections.reverse(retlist);
        return retlist;
    }

    public Map<String, Object> testMap(Map<String, Object> map) {<FILL_FUNCTION_BODY>}

}

        System.out.println("in testmap");
        Map<String, Object> retmap = new HashMap<String, Object>(map);
        retmap.put("size", map.size());
        return retmap;
    
<no_super_class>