Uploaded image for project: 'OJB'
  1. OJB
  2. OJB-20

Allow the use of collection-factory

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1 CVS
    • 1.1 CVS
    • PB-API
    • None

    Description

      Hi,
      This is a request for allowing a user to specify a collection-factory for a collection-descriptor. The collection factory is used to create collection instances when the owner of the collection is read from the database.
      In my usecase I need to pass runtime information to the constructor of the collection (i.e. the collection needs its owning object). This is for example for handling a notification infrastructure in which changes to the collection are broadcasted to listeners who need to know from which object the notification comes. The current collection-class implementation in ojb 'only' supports zero-argument constructors which do not handle my usecase.

      I have made an implementation of the collection-factory in ojb which I will try to attach (as a patch) to this request or otherwise send to the ojb-dev mailing list. If I can be of help to get this implemented then please let me know.

      gr. Martin Taal

      Attachments

        1. patch_coll_factory.txt
          21 kB
          Martin Taal

        Activity

          People

            tomdz Thomas Dudziak
            mtaal Martin Taal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: