|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.exolab.castor.mapping.loader.MappingLoader org.exolab.castor.xml.XMLMappingLoader tyrex.resource.castor.ResourceMappingLoader
Implementation of org.exolab.castor.xml.XMLMappingLoader that overrides the class descriptor for non tyrex and java classes.
This class is not thread-safe.
Field Summary | |
(package private) static Category |
CATEGORY
Logging category |
Fields inherited from class org.exolab.castor.mapping.loader.MappingLoader |
NoDescriptor |
Constructor Summary | |
ResourceMappingLoader()
Creates the ResourceMappingLoader |
Method Summary | |
protected org.exolab.castor.mapping.FieldDescriptor |
createFieldDesc(java.lang.Class javaClass,
org.exolab.castor.mapping.xml.FieldMapping fieldMap)
Creates a single field descriptor. |
org.exolab.castor.mapping.ClassDescriptor |
getDescriptor(java.lang.Class type)
Returns the class descriptor for the specified Java class. |
Methods inherited from class org.exolab.castor.xml.XMLMappingLoader |
createDescriptor, getTypeInfo, resolveRelations |
Methods inherited from class org.exolab.castor.mapping.loader.MappingLoader |
addDescriptor, createFieldDescs, getClassLoader, getLogWriter, listDescriptors, listJavaClasses, loadClassDescriptor, loadMapping, resolveType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final Category CATEGORY
Constructor Detail |
public ResourceMappingLoader() throws org.exolab.castor.mapping.MappingException
Method Detail |
public org.exolab.castor.mapping.ClassDescriptor getDescriptor(java.lang.Class type)
If the type comes from an object created by a field whose type
is ResourceConfig
then a special
class descriptor is created and returned.
type
- The Java class
protected org.exolab.castor.mapping.FieldDescriptor createFieldDesc(java.lang.Class javaClass, org.exolab.castor.mapping.xml.FieldMapping fieldMap) throws org.exolab.castor.mapping.MappingException
FieldDescriptor
.
If the java class is a subclass of
ResourceConfig
then the field handler
of the default field descriptor is overridden with
#SpyFieldHandlerImpl
.
javaClass
- The class to which the field belongsfieldMap
- The field mapping information
org.exolab.castor.mapping.MappingException
- The field or its accessor methods are not
found, not accessible, not of the specified type, etc
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |