-
1. Re: Support for JavaScript Objects
kpiwko Nov 22, 2013 3:18 AM (in response to tilm4nn)Hello Tilmann,
I pretty much like the idea! I think this should be simple, you can just implement/extent current DefaultExecutionResolver - see documentation here JavaScript Interface - Graphene 2 - Project Documentation Editor and source here arquillian-graphene/impl/src/main/java/org/jboss/arquillian/graphene/javascript/DefaultExecutionResolver.java at master … to support JavaScript Map to Java Map mapping. The same would be true for argument casting. I think the best way how to get it into Graphene would be to file a feature request at https://issues.jboss.org/browse/ARQGRA jira. If you accompany it with a pull request, I'm pretty sure Lukas will happily put it into next release.
Thanks,
Karel
-
2. Re: Support for JavaScript Objects
lfryc Nov 26, 2013 3:16 AM (in response to kpiwko)Hey Tilmann,
Karel is right, you can implement custom ExecutionResolver and achieve what you have propose.
But generally I like your idea, and I would actually go even further and implement support for JSR-353, objects JsonArray and JsonObject.
But Maps could be supported as well. For example as an adapter for JsonObject objects.
Would you mind to file a feature request?
I would actually appreciate if you could draft an implementation (in a fork of arquillian/arquillian-graphene · GitHub ) and eventually send a pull request for discussion.
But it's not strictly required. ;-)
I'm glad you like JavaScript interfaces.