Hi,

i have got a patch ready that basically starts to introduce natures to
the ClassDescriptor class hierarchy. It's not a small patch, but as far
as I can tell, the complete JDO test suite still runs (against mySQL)
without any problems.

Here's a short description what the patch does:

a) ClassDescriptor now extends PropertyHolder.
b) ClassDescriptorImpl now supports storing (typed) properties and
adding/checking natures.
c) A new ClassDescriptorJDONature has been added. In its signature, this
is almost identical to what JDOClassDescriptor used to offer.
d) JDOClassDescriptor(Impl) has been removed.

Mainly, the new ClassDescriptorJDOnature acts like a view on a
ClassDescriptor(Impl) instance that allows to access JDO-specific
properties of a ClassDescriptor. Adding such a nature (and removing the
JDOClassDescriptor(Impl) classes) yields the followinf benefits:

a) No more instanceof JDOClassDescriptor(Impl) checks. Instead we now
have classDescriptor.hasNature(...) calls.
b) No more type-casting between ClassDescriptor and JDOClassDescriptor
to access JDO attributes.

I have not touched any XML code yet, but will do so soon.

I am not sure whether I am capable to actually attach a patch to a Jira
issue, as the changes ar big, and involve tons of changes.

Let me know what you think, and let me know whether anybody will be
affected by this patch.

Regards
Werner

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to