You generally wouldn't integrate it into your application for what you are trying to do. You would use it offline as part of the build/ deployment process.

From what you have described, you should be able to either simply replace the existing component class with a new one or rename the existing class (you can do this using javaassist) and subclass it with a new class of the same name to achieve what you want to do.

On 05/05/2009, at 8:36 AM, Matthew Kidd wrote:


With regards to javaassist, how would I integrate this into an already established WebObjects application?



Chuck Hill <[email protected]>
04/15/09 09:44 PM

To
Matthew Kidd <[email protected]>
cc
[email protected]
Subject
Re: What is the connection between the WO and the java file?






On Apr 15, 2009, at 5:51 PM, Matthew Kidd wrote:

>
> I ask this because in my efforts to decompile a webobjects
> application from circa 2002 or 2003 I've encountered more errors
> than I care to deal and then I had an idea. If I could compile one
> java file, the only one I actually need to change, via commandline
> and swap the resulting .class files would the associated WO file be
> able to use it?

Yes, if you don't change the API.


> Or, is something done behind the scenes that I'm not readily able to
> see that connects the method calls in the WO to the methods in the
> java and .class file?

No, it is just done by name and visibility.


> I realize I would need the same jdk but I'll attack that hurdle next
> if this is a plausible solution.
>
> Thanks for any help or ray of hope you may be able to provide.

Hope that helps.  If you get extra desperate, you could get all
medieval on it: http://www.csg.is.titech.ac.jp/~chiba/javassist/

Where there is a will....

Chuck


--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects








------------------------------------------------------------------------
Disclaimer
The information in this email and any attachments may contain proprietary and confidential information that is intended for the addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, retention or use of the contents of this information is prohibited. When addressed to our clients or vendors, any information contained in this e-mail or any attachments is subject to the terms and conditions in any governing contract. If you have received this e- mail in error, please immediately contact the sender and delete the e-mail.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/qdolan%40gmail.com

This email sent to [email protected]



--
Seeya...Q

Quinton Dolan - [email protected]
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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to