> I looked at the CollectionFactory source you checked in and was > wondering if it was also possible to let the owner (the parent object) > of the collection be also passed to the createCollection methods in the > factory? The whole reason that I brought up the point of the > CollectionFactory is that I need the owner object during collection > construction. A collection factory is especially meaningfull in case > runtime information is required when creating the collection. However > the collection factory you checked in only allows the passing of more > static configuration information (i.e. collectiondescriptor). Or did I > miss something here? > > You mention in the javadoc that collections should have a zero-argument > constructor because the collection proxies > create the collection on their own. However, if the collection classes > should required to be creatable by ojb code (and not by the factory) > then there is no real need for a CollectionFactory. If that restriction > applies then imo the CollectionFactory does not add more functionality > than the current CollectionClass attribute in the CollectionDescriptor. > Please correct me if I am wrong. > > Sorry if my reaction is to quick, this specific feature is kind of > important for me that's why...
As I wrote in the other thread, this is just the beginning :-) Right now the collection factory is simply the result of factoring out the determination and - in parts - the creation of collections for the retrieval of collection descriptors and for querying. However the creation of these collections is spread out across multiple classes, one of which is the collection proxy mechanism, and so it is a bit more difficult to unify. My plan in this regard is to first move the collection creation completely into the collection factory, and then add runtime info (e.g. the owning object) to the creation calls. This however will take some time which is why I left the isse in JIRA open (in progress) for now. Tom --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
