Brian wrote:
> 1. how exactly is the descriptor used?  I have hunted throught the API

> and I can find a use of it anywhere.  How does castor know to use my 
> CustomerDescriptor class? An example would be great.


Search through the Castor source for the text "Descriptor".
Be sure that your search includes the double quotes.
You'll find code like this:

            String dClassName = className+"Descriptor";
            try {
                    Class dClass = loadClass(dClassName, loader);
                classDesc = (XMLClassDescriptor) dClass.newInstance();
            }

This snippet is from the resolve method of the class
ClassDescriptorResolverImpl.
Castor uses this code to dynamically load the Descriptors for
classes that you want to validate/marshal/unmarshal.


--Erik

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to