Package org.exolab.castor.mapping
Interface MappingLoader
-
- All Known Implementing Classes:
AbstractMappingLoader
,AbstractMappingLoader2
,JDOMappingLoader
,XMLMappingLoader
public interface MappingLoader
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: 8689 $ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $
- Author:
- Assaf Arkin
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear()
BindingType
getBindingType()
java.lang.ClassLoader
getClassLoader()
Returns the class loader associated with this mapping loader if one was specified.ClassDescriptor
getDescriptor(java.lang.String classname)
Returns the ClassDescriptor for the class with the given name.java.util.List<ClassDescriptor>
getDescriptors()
Returns a List ofClassDescriptor
s of all known descriptors.java.lang.String
getSourceType()
void
setClassLoader(java.lang.ClassLoader loader)
-
-
-
Method Detail
-
getBindingType
BindingType getBindingType()
-
getSourceType
java.lang.String getSourceType()
-
clear
void clear()
-
setClassLoader
void setClassLoader(java.lang.ClassLoader loader)
-
getClassLoader
java.lang.ClassLoader getClassLoader()
Returns the class loader associated with this mapping loader if one was specified. This is the class loader used to load all the classes mapped by this mapping loader. May be null if no class loader was specified or in certain JVMs.
-
getDescriptor
ClassDescriptor getDescriptor(java.lang.String classname)
Returns the ClassDescriptor for the class with the given name. If no such ClassDescriptor exists, within the set of mappings for this MappingLoader, null will be returned.- Parameters:
classname
- The className for which to return the associated ClassDescriptor.- Returns:
- The ClassDescriptor or null if not found.
-
getDescriptors
java.util.List<ClassDescriptor> getDescriptors()
Returns a List ofClassDescriptor
s of all known descriptors.- Returns:
- List of
ClassDescriptor
-
-