public abstract class AbstractMappingLoader2 extends Object implements MappingLoader
| Constructor and Description |
|---|
AbstractMappingLoader2(ClassLoader loader) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDescriptor(ClassDescriptor descriptor)
Adds a class descriptor.
|
void |
clear() |
ClassLoader |
getClassLoader()
Returns the class loader associated with this mapping loader if one was specified.
|
ClassDescriptor |
getDescriptor(String classname)
Returns the ClassDescriptor for the class with the given name.
|
List<ClassDescriptor> |
getDescriptors()
Returns a List of
ClassDescriptors 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(ClassLoader loader) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBindingType, getSourceTypepublic AbstractMappingLoader2(ClassLoader loader)
public final void clear()
clear in interface MappingLoaderpublic final void setClassLoader(ClassLoader loader)
setClassLoader in interface MappingLoader{@inheritDoc}public final ClassLoader getClassLoader()
MappingLoadergetClassLoader 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(String classname)
MappingLoadergetDescriptor in interface MappingLoaderclassname - The className for which to return the associated ClassDescriptor.{@inheritDoc}public final List<ClassDescriptor> getDescriptors()
MappingLoaderClassDescriptors of all known descriptors.getDescriptors in interface MappingLoaderClassDescriptorprotected final boolean loadMapping()
true if mapping should be loaded, false otherwise.Copyright © 2016. All rights reserved.