Ummmm, I stated that i had used the
J2EE Factory Pattern which means that i am using interface implementation. I must not have expllained well enough what i am doing... It is not an option for me to just let the logic decide which method to call, users who are building screens will be telling me by way of a
string which method they want to call, all methods return them a map which the screen is smart enough to display as a table.
R there any GURU's out there who have a suggestion for the best way to handle this? I have an XML file with the details about whatever method string they send me, it says which DAOFactory to instantiate, and which DAO Interface the method belongs to, as well as info about the parameters to expect. The users are not java developers, they cannot just call the method, they are designing an HTML screen, of which they may want certain data from the database, to get this data they drop a
jsp tag of sorts on the html page they are designing. I disect the tag to figure out what it is they want.
My biggest issue lays in figuring out how to go about instantiating the DAO, i am thinking i somehow need a MainDAO object that can be an instantiation of any of the other DAO objects. I have never designed DAO before though and have myself in a bit of confusion.....