Package org.castor.mapping
Class AbstractMappingLoaderFactory
- java.lang.Object
-
- org.castor.mapping.AbstractMappingLoaderFactory
-
- All Implemented Interfaces:
MappingLoaderFactory
- Direct Known Subclasses:
JDOMappingLoaderFactory
,XMLMappingLoaderFactory
public abstract class AbstractMappingLoaderFactory extends java.lang.Object implements MappingLoaderFactory
Abstract base class for MappingLoaderFactory instances- Author:
- me
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.commons.logging.Log
LOG
The Jakarta Commons Logging instance used for all logging.
-
Constructor Summary
Constructors Constructor Description AbstractMappingLoaderFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.String
getClassname()
To obtain the class name of the MappingLoader to instantiateMappingLoader
getMappingLoader()
Acquires the appropriate org.exolab.castor.mapping.MappingLoader with the given properties.java.lang.String
getSourceType()
Defines the source type of the underlying MappingLoader-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.castor.mapping.MappingLoaderFactory
getBindingType, getName
-
-
-
-
Field Detail
-
LOG
public static final org.apache.commons.logging.Log LOG
The Jakarta Commons Logging instance used for all logging.
-
-
Method Detail
-
getSourceType
public final java.lang.String getSourceType()
Description copied from interface:MappingLoaderFactory
Defines the source type of the underlying MappingLoader- Specified by:
getSourceType
in interfaceMappingLoaderFactory
- Returns:
- The source type.
-
getClassname
public abstract java.lang.String getClassname()
To obtain the class name of the MappingLoader to instantiate- Returns:
- The class name of the MappingLoader to instantiate
-
getMappingLoader
public final MappingLoader getMappingLoader() throws MappingException
Description copied from interface:MappingLoaderFactory
Acquires the appropriate org.exolab.castor.mapping.MappingLoader with the given properties.- Specified by:
getMappingLoader
in interfaceMappingLoaderFactory
- Returns:
- The transaction manager.
- Throws:
MappingException
- If any failure occured when loading the MappingLoader.
-
-