Home » Castor-1.3-src » org.exolab.castor » xml » util » resolvers » [javadoc | source]
org.exolab.castor.xml.util.resolvers
public class: ByDescriptorClass [javadoc | source]
java.lang.Object
   org.exolab.castor.xml.util.resolvers.AbstractResolverClassCommand
      org.exolab.castor.xml.util.resolvers.ByDescriptorClass

All Implemented Interfaces:
    ResolverClassCommand

Resolve a class by looking for a descriptor class 'nearby'. The descriptor class has to follow some specific naming conventions (and maybe be in a special package).
Constructor:
 public ByDescriptorClass() 
Method from org.exolab.castor.xml.util.resolvers.ByDescriptorClass Summary:
internalResolve
Methods from org.exolab.castor.xml.util.resolvers.AbstractResolverClassCommand:
internalResolve,   resolve
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.exolab.castor.xml.util.resolvers.ByDescriptorClass Detail:
 protected Map internalResolve(String className,
    ClassLoader classLoader,
    Map properties) throws ResolverException 
    Tries to load an XMLClassDescriptor directly from an existing .class file.
    The file that is searched for must be located in the classpath, have the name className + "Descriptor", and contain a valid XMLClassDescriptor.
    If a descriptor is found it is added to the internal descriptor cache.
    {@inheritDoc}