Hi Andy,

Is there a "getting started" building JPOX from source? I downloaded Core, Enhancer, and Plugins but the maven goals don't seem to work.

Thanks,

Craig

On Jul 30, 2007, at 1:51 AM, Andy Jefferson wrote:

Hi Craig,

The difference between Persistent Interface and Persistent Abstract
Class is:

1. interface PIXXX vs. abstract class PACXXX
2. PIXXXImpl implements PIXXX vs. PACXXXImpl extends PACXXX
3. All methods in PIXXX must be properties (corresponding get/set
methods) vs. all abstract methods in PACXXX must be properties.
4. PIXXXImpl implements all property methods vs. PACXXXImpl
implements all property methods.

I think that JPOX has already done the hard part in getting PI to
work. The remaining work is "mapping" the concepts of PI to PAC.

If you point me in the right direction, I'll try to make a patch for JPOX.

Ok, if you have time try the following :-

1. Core/src/java/org/jpox/ObjectManagerImpl.java has the method newInstance().
This hands off the creation to an "ImplementationCreator".

2. Enhancer/src/java/org/jpox/enhancer/ImplementationCreatorImpl.java
It has a TODO at line 71. The processing of interfaces is at line 88 which
utilises an "ImplementationGenerator".

3. Enhancer/src/java/org/jpox/enhancer/bcel/ BCELImplementationGenerator.java This currently is only set up for interfaces (InterfaceMetaData), so would
need extending to allow classes (ClassMetaData) - so a new constructor
perhaps.

... and if you don't have time then we will get around to it at some point.

Thx
--
Andy  (Java Persistent Objects - http://www.jpox.org)

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:[EMAIL PROTECTED]
P.S. A good JDO? O, Gasp!

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to