Re: ObjectContext & Factory

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Thu Aug 16 2007 - 09:13:55 EDT

  • Next message: Mike Kienenberger: "Re: Querying a Primary Key"

    I meant "wasn't ONLY about callbacks", as Adrian indeed mentions
    callbacks ... sorry need more coffee :-)

    http://objectstyle.org/cayenne/lists/cayenne-devel/2007/08/0124.html

    Andrus

    On Aug 16, 2007, at 9:10 AM, Andrus Adamchik wrote:

    > I think this wasn't about callbacks - Adrian develops his own
    > extensions that require a decorator.
    >
    > Andrus
    >
    >
    > On Aug 16, 2007, at 9:06 AM, Aristedes Maniatis wrote:
    >
    >> Moving to use....
    >>
    >> On 16/08/2007, at 9:02 PM, Adrian Wiesmann wrote:
    >>
    >>> Could anybody please help me out with an example of how to use
    >>> ObjectContextFactory, ObjectContext and ObjectContextDecorator? I
    >>> would
    >>> like to write some code which makes sure that every ObjectContext
    >>> created
    >>> in my application is created by my own factory which
    >>> automatically adds a
    >>> decorator (and idirectly lifecycle callbacks). I am mostly
    >>> interested to
    >>> see how my own factory could first call the "base" implementation
    >>> (not
    >>> sure what and where the "base" is). I got it working with
    >>> DataContextFactory but ObjectContext seems to be a little bit
    >>> different to
    >>> that.
    >>
    >> With a recent commit [1] to 3.0 after M1, you may no longer need
    >> to add a decorator at all if you just want to add lifecycle
    >> callbacks.
    >>
    >> Ari Maniatis
    >>
    >>
    >> [1] http://svn.apache.org/viewvc?view=rev&revision=560812
    >>
    >>
    >>
    >> -------------------------->
    >> Aristedes Maniatis
    >> phone +61 2 9660 9700
    >> PGP fingerprint 08 57 20 4B 80 69 59 E2 A9 BF 2D 48 C2 20 0C C8
    >>
    >>
    >



    This archive was generated by hypermail 2.0.0 : Thu Aug 16 2007 - 09:14:28 EDT