Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
RuedigerMoeller committed Aug 8, 2017
1 parent d662855 commit 83b61d2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
public class TestPojo implements Serializable {
Map aMap = new HashMap();
List<String> strings = new ArrayList<>();
String someString;

public TestPojo() {
aMap.put("A",1);
Expand All @@ -17,4 +18,16 @@ public TestPojo() {
strings.add("2");
strings.add("3");strings.add("4");
}

public Map getMap() {
return aMap;
}

public List<String> getStrings() {
return strings;
}

public String getSomeString() {
return someString;
}
}
4 changes: 3 additions & 1 deletion examples/docsamples/src/main/javascript/TestActorClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ kclient.useProxies(true).connect("http://localhost:8888/test").then( (app,e) =>
"docsamples.jsinterop.javaserves.TestPojo",
{
aMap: coder.jmap({"A": 1, "B": 2}),
strings: coder.jcoll("list", ['1', '2', '3'])
strings: coder.jcoll("list", ['1', '2', '3']),
someString: 'Blabla'
}
);
console.log('outgoing: ', JSON.stringify(pojo,2));
app.plainPojo( pojo ).then( (r, e) => {
console.log("plainPojo returned ", r, e);
});
Expand Down

0 comments on commit 83b61d2

Please sign in to comment.