org.exolab.castor.mapping
Interface MappingResolver

All Known Implementing Classes:
org.exolab.castor.mapping.loader.MappingLoader

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
 java.lang.ClassLoader getClassLoader()
          Returns the class loader associated with this mapping resolver if one was specified.
 ClassDescriptor getDescriptor(java.lang.Class javaClass)
          Returns the class descriptor for the specified Java class.
 java.util.Enumeration listDescriptors()
          Returns an enumeration of all the known descriptors.
 java.util.Enumeration listJavaClasses()
          Returns an enumeration of all the supported Java classes.
 

Method Detail

getDescriptor

public ClassDescriptor getDescriptor(java.lang.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 java.util.Enumeration listDescriptors()
Returns an enumeration of all the known descriptors. Each element is of type ClassDescriptor.


listJavaClasses

public java.util.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.


getClassLoader

public java.lang.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.



Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com