Guys i have a design where in i have 6 classes called
1)HttpServer
2)ParserClass
3)InputInterface
4)Cartonization
5)OutputInterface
and then i have a
6)Manager class.
HttpServer gets the request xml as a string in request body. ParserClass parses the string xml and stores value in variables. inputInterface inserts the values in inputTable, Cartonization Class does some processing with these values. OutputInterface inserts processed values in OutputTables then we re-create an ouputxml and send it back as response.
The various functionality is controlled by Manager. Manager takes i/p string from server, passes it to parser, parser returns some values,manager gives it to i/p interface etc. Now my question is that to all this Manager needs to have objects of all these classes. none of these functions are static. Should i make all these classes as class member variables of the manager class or should i create the objects as and when required and use them? what will be a better design?
thanks
chandra