Example usage for org.springframework.remoting.support RemoteInvocation RemoteInvocation

List of usage examples for org.springframework.remoting.support RemoteInvocation RemoteInvocation

Introduction

In this page you can find the example usage for org.springframework.remoting.support RemoteInvocation RemoteInvocation.

Prototype

public RemoteInvocation() 

Source Link

Document

Create a new RemoteInvocation for JavaBean-style deserialization (e.g.

Usage

From source file:org.piraso.replacer.spring.remoting.XStreamTest.java

public void testXML() throws Exception {
    RemoteInvocation remote = new RemoteInvocation();

    Method method = String.class.getMethod("valueOf", Object.class);

    Map<String, String> map = new LinkedHashMap<String, String>();

    map.put("a", "b");
    map.put("c", "d");
    map.put("e", "f");

    remote.setMethodName(method.getName());
    remote.setParameterTypes(method.getParameterTypes());
    remote.setArguments(/*from ww  w  . j  ava  2s . co  m*/
            new Object[] { map, "Alvin", "de", "Leon", new TestNestedBean(new TestNestedBean(null)) });

    System.out.println(XStreamUtils.XSTREAM.toXML(remote));
}