----------------------------------------------------------- New Message on MumbaiUserGroup
----------------------------------------------------------- From: Sapan108231 Message 9 in Discussion I could not send the attachment.. But let me know if you need it.. @Sapan -----Original Message----- From: Shah, Sapan [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 23, 2003 10:03 AM To: MumbaiUserGroup Subject: RE: Help needed to develop a Component Nitin, Let us consider the pros and cons first You want to generate the objects at run time. I dont think, generating them would be a problem, but would using reflection be a good idea? Considering the time it takes to load the objects using reflection, it can be pretty time consuming, if these objects are also generated. This will affect the performance to a great extent, if the objects are recursive or else, have a complex structure For example - A UserObject, apart from having the username and Password fields, also have an AddressObject, that has Street1, Street2, Street3 and a CountryObject which in turn will contain the country code and the Country Name and Country Short name. UserObject UserName Password SSN FirstName LastName AddressObject Street1 Stree2 Zipcode CountryObject CountryCode CountryShortName CountryLongName If you want to load such an object using reflection, believe me your system will die before that. Another option can be using or creating a utility that generates these objects before they are used. Meaning, you defnine your structures and generate these objects and compile them. This definitely will save your time and boost your performance. AGain coming to your point on MVC, i could not get what would act as the controller in your pattern / architecture. What happens in MVC, as you must be aware, is that the view will pass its information to the controller, and the controller will call the appropriate business method to the model (I hope, I am not wrong, and my concepts are clear for this) I would recommend you to go through the document that is attached with this mail. It helps in taking an MVS approach and ValueObject pattern. Looking at your application I feel, the objects that you want to generate at run time / compile time(if you decide upon them) can be value objects and combine it with the architecture that is attached herewith(It is called command pattern with VO pattern) Of course, you can get back to me anytime for further information or can call me up at +91 98240 59280. Regards, Sapan Shah Web Services and .NET CoE Patni Computer Systems Ltd, India http://www.patni.com World Wide Partnerships, World Class Solutions -----Original Message----- From: Nitin Mekhiya [mailto:[EMAIL PROTECTED] Sent: Friday, December 19, 2003 10:31 PM To: MumbaiUserGroup Subject: Re: Help needed to develop a Component New Message on MumbaiUserGroup Help needed to develop a Component Reply Reply to Sender Recommend Message 8 in Discussion From: Nitin Mekhiya My project is web application.The outer interface is of web service. UI would be build by some third party tool,which will absorb all web methods. It has very implemented various layers of MVC - Info,DAO, Model,Event,Response. Each Info class has GetInfoFromXml and SetInfoFromXMl methods to get xml string. It is using extensive serialization and deserialization. Now i want generate a component which will generate these classes after reading Datatables or metedata from xml file. As i said there are 11 sub system ,2 sub systems are ready,for remaining sub systems i want to generate code automatically using some generalized component. Infact thinking one step further.If a component can generate code ,which then take part in MVC architecture...Can i try to make component which will generate objects directly at runtime as per need. It would be great help if i can get some sample code or good article which gives explaination for writing such tool. I am actually implementing Design patterns for the first time.(just 3 months old to the concept) Sapan you think I should get in to value objects and then i would be able to get the solution. View other groups in this category. ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
