org.castor.mapping
Class AbstractMappingLoaderFactory

java.lang.Object
  extended by 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
static org.apache.commons.logging.Log LOG
          The Jakarta Commons Logging instance used for all logging.
 
Constructor Summary
AbstractMappingLoaderFactory()
           
 
Method Summary
abstract  java.lang.String getClassname()
          To obtain the class name of the MappingLoader to instantiate
 MappingLoader 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.

Constructor Detail

AbstractMappingLoaderFactory

public AbstractMappingLoaderFactory()
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 interface MappingLoaderFactory
Returns:
The source type.
See Also:
MappingLoaderFactory.getSourceType()

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 interface MappingLoaderFactory
Returns:
The transaction manager.
Throws:
MappingException - If any failure occured when loading the MappingLoader.
See Also:
MappingLoaderFactory.getMappingLoader()


Copyright © 2011. All Rights Reserved.