Re: [Wonder-disc] Direct To Web Rule Practices?
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