• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Tracing EditingContext lifecycle ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tracing EditingContext lifecycle ?


  • Subject: Re: Tracing EditingContext lifecycle ?
  • From: Chuck Hill <email@hidden>
  • Date: Sat, 07 Feb 2015 19:49:57 +0000
  • Thread-topic: Tracing EditingContext lifecycle ?

Hi Gavin,

How are you doing?  There are notifications and a delegate to trace part of this, but not dispose().

Is the code using the EXEC factory method of creation?  If so, just subclass the ERXEC or whatever class it is using now, and override the lifecycle method that you want to log from.  Then create and set a new factory to use your EC class.  That will give you total control.  If the code is doing new ERXEC(), then switch that to the factory pattern first.  

Chuck


On 2015-02-07, 8:37 AM, "Gavin Eadie" wrote:

Having inherited some code, I'm inspecting how it uses ECs (actually, ERXECs) and wonder if there are delegates (or other mechanism) that could intercept creation, usage, and, most importantly, disposing of these beasties.

The code is convoluted, using too many ECs, and somewhat heavy with static initializers which, if they allocate an EC, allocate it 'forever' resulting in some ECs managing to persist through Session terminations, with occasional nasty consequences!

I'd really like to get the ECs to report their lifecycle events so I can locate where they get used, and thereby correct how they are used.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Tracing EditingContext lifecycle ? (From: Gavin Eadie <email@hidden>)

  • Prev by Date: Tracing EditingContext lifecycle ?
  • Next by Date: CSS and ERD2WMultiItemCustomComponent
  • Previous by thread: Tracing EditingContext lifecycle ?
  • Next by thread: CSS and ERD2WMultiItemCustomComponent
  • Index(es):
    • Date
    • Thread