RE: [Objectbridge-jdo-dev] reference enhancer
Brought to you by:
thma
From: Jim H. <je...@hu...> - 2002-05-16 21:42:59
|
travis> Should the reference enhancer work for most implementations? Yes. The spec requires that enhanced classes should be able to dropped into any compliant jdo impl and work. Theoretically, there is not reason for any jdo vendor to code an enhancer; they could just license the ri's enhancer. travis> Also, when should the enhancement take place? When you build. IDE's should eventually begin to support it, but for now this is best done with ant. Some impls include a custom ant task, but it's doable with plain java classes, as long as the impl exposes the enhancement classes. Here's an example using the ri: <target name="enhance" depends="compile"> <java fork="yes" failonerror="yes" classname="com.sun.jdori.enhancer.Main" classpathref="classpath"> <arg line="-f -d ${classdir} ${classdir}/com/hughesorama/jdoex/testfixture.jdo ${test.dao.classes}"/> </java> </target> Jim |