org.exolab.castor.mapping.loader
Class AbstractMappingLoader2
java.lang.Object
org.exolab.castor.mapping.loader.AbstractMappingLoader2
- MappingLoader
public abstract class AbstractMappingLoader2
extends java.lang.Object
AbstractMappingLoader2
public AbstractMappingLoader2(ClassLoader loader)
addDescriptor
protected final void addDescriptor(ClassDescriptor descriptor)
throws MappingException
Adds a class descriptor. Will throw a mapping exception if a descriptor for this class
already exists.
descriptor
- The descriptor to add.
isAllowRedefinition
public final boolean isAllowRedefinition()
Is the ability to allow redefinitions enabled or disabled?
- A boolean that when true enables redefinitions.
loadMapping
protected final boolean loadMapping()
Return if mapping should be loaded with this MappingLoader instance or if another
mapping have been loaded previously. If no mapping have been loaded previously
then prevent any other mapping to be loaded later on.
true
if mapping should be loaded, false
otherwise.
setAllowRedefinitions
public final void setAllowRedefinitions(boolean allow)
Enables or disables the ability to allow the redefinition of class mappings.
allow
- A boolean that when true enables redefinitions.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com