Public Member Functions

org.exolab.castor.mapping.MappingResolver Interface Reference

Inheritance diagram for org.exolab.castor.mapping.MappingResolver:
org.exolab.castor.mapping.loader.MappingLoader org.exolab.castor.tools.MappingTool.InternalLoader org.exolab.castor.xml.XMLMappingLoader

List of all members.

Public Member Functions

ClassDescriptor getDescriptor (Class javaClass)
Enumeration listDescriptors ()
Enumeration listJavaClasses ()
ClassLoader getClassLoader ()

Detailed Description

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.

Author:
Assaf Arkin
Version:
Revision:
1.1.1.1
Date:
2003/03/03 07:08:28

Member Function Documentation

ClassLoader org.exolab.castor.mapping.MappingResolver.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.

Implemented in org.exolab.castor.mapping.loader.MappingLoader.

ClassDescriptor org.exolab.castor.mapping.MappingResolver.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

Implemented in org.exolab.castor.mapping.loader.MappingLoader.

Enumeration org.exolab.castor.mapping.MappingResolver.listDescriptors (  ) 

Returns an enumeration of all the known descriptors. Each element is of type ClassDescriptor.

Implemented in org.exolab.castor.mapping.loader.MappingLoader.

Enumeration org.exolab.castor.mapping.MappingResolver.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.

Implemented in org.exolab.castor.mapping.loader.MappingLoader.


The documentation for this interface was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties