MappingLoader
AbstractMappingLoader
public abstract class AbstractMappingLoader2 extends java.lang.Object implements MappingLoader
Constructor | Description |
---|---|
AbstractMappingLoader2(java.lang.ClassLoader loader) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
addDescriptor(ClassDescriptor descriptor) |
Adds a class descriptor.
|
void |
clear() |
|
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 of
ClassDescriptor s of all known descriptors. |
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) |
getBindingType, getSourceType
public AbstractMappingLoader2(java.lang.ClassLoader loader)
public final void clear()
clear
in interface MappingLoader
public final void setClassLoader(java.lang.ClassLoader loader)
setClassLoader
in interface MappingLoader
MappingLoader.setClassLoader(java.lang.ClassLoader)
public final java.lang.ClassLoader getClassLoader()
MappingLoader
getClassLoader
in interface MappingLoader
MappingLoader.getClassLoader()
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.MappingLoader.getDescriptor(java.lang.String)
public final java.util.List<ClassDescriptor> getDescriptors()
MappingLoader
ClassDescriptor
s of all known descriptors.getDescriptors
in interface MappingLoader
ClassDescriptor
protected final boolean loadMapping()
true
if mapping should be loaded, false
otherwise.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com