Home » Castor-1.3-src » org.exolab.castor » xml » util » resolvers » [javadoc | source]
public class: ByCDR [javadoc | source]

All Implemented Interfaces:

Resolves a class by reading the package level class-descriptor-resolver file and loading all descriptors mentioned inside.
 public ByCDR() 
Method from org.exolab.castor.xml.util.resolvers.ByCDR Summary:
Methods from org.exolab.castor.xml.util.resolvers.AbstractResolverPackageCommand:
internalResolve,   isEmptyPackageName,   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.ByCDR Detail:
 protected Map internalResolve(String packageName,
    ClassLoader classLoader,
    Map properties) throws ResolverException 
    Tries to load the CDR file for the given package name using the provided class loader. If the CDR file is available and could be loaded properly the descriptors listed in it are added to this cache.
    If a descriptor is listed in the CDR file for the given package but could not be loaded (e.g. because the reference class file is not available) the descriptor is ignored but no exception is thrown.
    If a CDR file is not available for the given package this method will not load any descriptors and not throw any exceptions.
    Further calls to this method with the same package name will not be processed.