Forums Register Login

Data structure for reflection uses (pairs of String and String[])

+Pie Number of slices to send: Send
Hi,
My business logic lies behind a web service. So the remote client calls the methods of the service. The client passes string from which the server extract name of the method and arguments. So I need a data structure to store the name (string) of the method and the arguments (String[]) pairs. So I need some thing like map but the keys shouldn't be unique (the keys would be the names of the methods).
Any ideas?

Thanks.
+Pie Number of slices to send: Send
Not quite sure, but method calling via reflection is different from that; you get Method objects and invoke them with Object[] for their arguments. I presume you are familiar with the Java reflection API?
I don't think there is such a thing as a Map which permits duplicate Keys; you would have to encapsulate Method and arguments into a single class, then they might sit nicely in a Set.
Danger, 10,000 volts, very electic .... tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 871 times.
Similar Threads
Remote method/argumet data structure
what collection class to use??
Properties/Settings - a design question
criteriaFind
Error : Invalid number of payload elements
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 06:36:50.