Originally posted by David Harkness:
It sounds like you want to write your own getopt library for others to use. If that's the case, clearly you'll be starting from scratch and using the standard Java parsing libraries. Can you describe your project in a bit more detail?
sure.. I am trying to create an app initiator that can be used by other java programs to set up the environ ment for them. it will recieve an xml file containing paths of config files, log files and database credentials. my app will connect to the database Oracle and give the user a GUI to choose which tables and which fields (with their dependencies) he wishes to represent in the java code. then i can create a set of java classes for them mapping to the tables with getter and setter methods for the instance fields. the app will also provide a generic interface by which the user can choose which other databse he wishes to connect to and custom his application from that..can i generate java code for any database at run time..? i dint think so, so i opted this way. then i set up the logging and store the config file information for them and they can retreive it by methods in an interface. and lastly i create a database connection for them which they can retreive from the interface and use as they wish. finally i would invoke their application by reflection......in all this fucntionality i also have a part that caters to aprsing command line aargs passed and store them in a hashtable to be used later by implementing application. hence the confusion
On another
thread ......
this is my company project, was thinking on the same lines so had a wild idea..
istead of parsing a xml, if i parse a
word document (template will be fixed from before) and extract methods and classes to be used along with database credentials. then instead of just generating the database interaction code i can generate the entire package structures with class and methods along with signatures. all the user will have to do is plug in his code in the method braces. so it will be like a tool which will create a project from a design document. what do you say.. was thinking of building it myself as a practise thing. do you think it will be useful and is it a good idea..
Thanks