This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes OO, Patterns, UML and Refactoring and the fly likes need a good routing design pattern Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "need a good routing design pattern " Watch "need a good routing design pattern " New topic
Author

need a good routing design pattern

Kosala Amarasinghe
Greenhorn

Joined: May 20, 2011
Posts: 3

Hi,
I'm looking for a good design pattern to act as an interface between a single function like functionName(String methodCode,String[] inputs) and the methods this functionName would call.
So you would give a MethodCode and a string array of inputs that would be deciphered into which method in which class needs to be called and what the inputs to the method would be.
The methodCodes with descriptions and input descriptions along with order in the array will be given as a doc to the client/user.

The purpose of this is to hide any variable names or method names from the back-end for security purposes. Finally functionName will be accessed as a Web Service from the client/user.
cheers for your help in advance.
Kosala
Kosala Amarasinghe
Greenhorn

Joined: May 20, 2011
Posts: 3

Solved it used Mediator Design pattern.
 
GeeCON Prague 2014
 
subject: need a good routing design pattern