|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.mapping.loader.AbstractMappingLoader2
public abstract class AbstractMappingLoader2
Constructor Summary | |
---|---|
AbstractMappingLoader2(java.lang.ClassLoader loader)
|
Method Summary | |
---|---|
protected void |
addDescriptor(ClassDescriptor descriptor)
Adds a class descriptor. |
void |
clear()
|
java.util.Iterator |
descriptorIterator()
Returns an iterator over all the known descriptors in the original order they have been added. |
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. |
boolean |
isAllowRedefinition()
Is the ability to allow redefinitions enabled or disabled? |
protected boolean |
loadMapping()
Return if mapping should be loaded with this MappingLoader instance or if another mapping have been loaded previously. |
void |
setAllowRedefinitions(boolean allow)
Enables or disables the ability to allow the redefinition of class mappings. |
void |
setClassLoader(java.lang.ClassLoader loader)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.exolab.castor.mapping.MappingLoader |
---|
getBindingType, getSourceType |
Constructor Detail |
---|
public AbstractMappingLoader2(java.lang.ClassLoader loader)
Method Detail |
---|
public final void clear()
clear
in interface MappingLoader
public final void setClassLoader(java.lang.ClassLoader loader)
setClassLoader
in interface MappingLoader
{@inheritDoc}
public final java.lang.ClassLoader getClassLoader()
MappingLoader
getClassLoader
in interface MappingLoader
{@inheritDoc}
public final void setAllowRedefinitions(boolean allow)
allow
- A boolean that when true enables redefinitions.public final boolean isAllowRedefinition()
protected final void addDescriptor(ClassDescriptor descriptor) throws MappingException
descriptor
- The descriptor to add.
MappingException
- A descriptor for this class already exists.public final ClassDescriptor getDescriptor(java.lang.String classname)
MappingLoader
getDescriptor
in interface MappingLoader
classname
- The className for which to return the associated ClassDescriptor.
{@inheritDoc}
public final java.util.Iterator descriptorIterator()
MappingLoader
ClassDescriptor
.
descriptorIterator
in interface MappingLoader
{@inheritDoc}
protected final boolean loadMapping()
true
if mapping should be loaded, false
otherwise.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |