org.exolab.castor.mapping

Interface MappingResolver

public interface MappingResolver

Provides the mapping descriptor for Java classes. The engines use resolvers to obtain the mapping descriptor for a particular Java class, or to list all the known descriptors. Although the interface is identical, each engine will use a resolver that returns class descriptor suitable for that particular engine. Resolvers are immutable and engines need not cache the returned descriptors.

Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:08:28 $

Author: Assaf Arkin

Method Summary
ClassLoadergetClassLoader()
Returns the class loader associated with this mapping resolver if one was specified.
ClassDescriptorgetDescriptor(Class javaClass)
Returns the class descriptor for the specified Java class.
EnumerationlistDescriptors()
Returns an enumeration of all the known descriptors.
EnumerationlistJavaClasses()
Returns an enumeration of all the supported Java classes.

Method Detail

getClassLoader

public ClassLoader getClassLoader()
Returns the class loader associated with this mapping resolver if one was specified. This is the class loader used to load all the classes mapped by this mapping resolver. May be null if no class loader was specified or in certain JVMs.

getDescriptor

public ClassDescriptor getDescriptor(Class javaClass)
Returns the class descriptor for the specified Java class. In no such descriptor exists, returns null.

Parameters: javaClass The Java class

Returns: A suitable class descriptor or null

listDescriptors

public Enumeration listDescriptors()
Returns an enumeration of all the known descriptors. Each element is of type {@link ClassDescriptor}.

listJavaClasses

public Enumeration listJavaClasses()
Returns an enumeration of all the supported Java classes. Each element is of type java.lang.Class, and for each such class a suitable descriptor exists.
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com