• 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: [Wonder-disc] Direct To Web Rule Practices?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Wonder-disc] Direct To Web Rule Practices?


  • Subject: Re: [Wonder-disc] Direct To Web Rule Practices?
  • From: Q <email@hidden>
  • Date: Wed, 26 Sep 2007 12:30:24 +1000


On 26/09/2007, at 11:39 AM, Kieran Kelleher wrote:

Q,

IIRC, ERXPatcher in ERXExtensions substitutes in ERXGenericRecord as the class to load when the JVM gets told to load EOGenericRecord.

If you mean by this that classes which subclass EOGenericRecord are automatically patched to subclass ERXGenericRecord instead, are you sure this actually happens, or did you mean something different? ERXPatcher will patch WO's class name resolver for partial class name strings like pageWithName(), and the WOD parser uses, so that a request for a class reference to "EOGenericRecord" will return an "ERXGenericRecord". However, to change the actual superclass of a concrete class requires either a different implementation of the target classes superclass earlier in the classpath, or bytecode manipulation, and a custom class loader, neither of which wonder includes to the best of my knowledge.


Have a look at the ERXPatcher source. A bunch of classes are nicely patched (aka replaced) by WOnder to provide us with a better WebObjects experience .... ERXWOForm instead of WOForm, etc,

Yes, I have looked at this code in the past, it doesn't do anything that would effect the JVM's underlying class loading, only WO's partial class name resolution of strings to class references.


HTH, Kieran

On Sep 25, 2007, at 8:43 PM, Q wrote:

4) Can I use Wonder's DTW frameworks without subclassing my EO?

This will happen automatically. ERXGenericRecord is patched in as a superclass when you subclass ERXApplication and ERXSession - which you should if you don't want deadlocked applications.

"patched in as a superclass". can you please clarify what you mean by this exactly?




-- Seeya...Q

Quinton Dolan - email@hidden
Gold Coast, QLD, Australia (GMT+10)
Ph: +61 419 729 806



_______________________________________________
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


  • Follow-Ups:
    • Re: [Wonder-disc] Direct To Web Rule Practices?
      • From: Kieran Kelleher <email@hidden>
References: 
 >Direct To Web Rule Practices? (From: James Cicenia <email@hidden>)
 >Re: [Wonder-disc] Direct To Web Rule Practices? (From: Guido Neitzer <email@hidden>)
 >Re: [Wonder-disc] Direct To Web Rule Practices? (From: Q <email@hidden>)
 >Re: [Wonder-disc] Direct To Web Rule Practices? (From: Kieran Kelleher <email@hidden>)

  • Prev by Date: Re: EOOrQualifier
  • Next by Date: Re: [Wonder-disc] Direct To Web Rule Practices?
  • Previous by thread: Re: [Wonder-disc] Direct To Web Rule Practices?
  • Next by thread: Re: [Wonder-disc] Direct To Web Rule Practices?
  • Index(es):
    • Date
    • Thread