|
From: Oren M. <or...@qu...> - 2006-11-06 21:27:33
|
Unfortunately the Ruby, Python, and C++ API's do not have a MessageFactory. They were added to the Java and .NET APIs due to those languages very strict type checking. We could probably add a MessageFactory to them for this purpose, even though the original use case of it isn't relevant to those languages. A dynamic message factory could be pretty cool because we could probably drop the requirement of passing a message factory to the initiator/acceptor (making all the APIs more similar to each other). Each session with a data dictionary could use a dynamic factory, while ones without would just use the default. I'm not sure if this would create any sort of significant performance repercussions. I'm not sure I necessarily agree about pulling validate out of the data dictionary. I suppose if there is a use case where you want to validate against the data dictionary and something else. If you are just validating against a data dictionary however, the validate method seems to be in an appropriate location to me. --oren On Nov 6, 2006, at 1:01 PM, st...@te... wrote: >> Dynamically creating groups based on the DataDictionary is an >> interesting idea. What do you think of flipping it around a little >> and turning the DataDictionary into a kind of factory. I'm thinking: >> >> Group group = dataDictionary.createGroup( "X", NoPartyIDs.FIELD ) >> >> Then you can even add createMessage( "X" ), and createField methods. >> Could be useful for some use cases that require more dynamic >> capabilities. > > Interesting idea. It would be nice to have a dynamic factory. What > about > using (and extending) the quickfix.MessageFactory with an > implementation > that uses a data dictionary for generating messages and parts of > messages > like groups, components and fields? > > The only minor concern I have about adding it to the DataDictionary is > that this seems to add a new responsibility to the dictionary. I'd > even > like to see validation extracted to a validator class rather than > tightly > coupled to the metadata management provided by the DataDictionary. > > Regards, > > Steve > > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfixj-users > |