tyrex.resource.castor
public final class ResourceMappingLoader extends XMLMappingLoader
This class is not thread-safe.
Field Summary | |
---|---|
static Category | CATEGORY
Logging category |
Constructor Summary | |
---|---|
ResourceMappingLoader()
Creates the ResourceMappingLoader |
Method Summary | |
---|---|
protected FieldDescriptor | createFieldDesc(Class javaClass, FieldMapping fieldMap)
Creates a single field descriptor. |
ClassDescriptor | getDescriptor(Class type)
Returns the class descriptor for the specified Java class.
|
If the java class is a subclass of ResourceConfig then the field handler of the default field descriptor is overridden with ResourceMappingLoader.
Parameters: javaClass The class to which the field belongs fieldMap The field mapping information
Returns: The field descriptor
Throws: MappingException The field or its accessor methods are not found, not accessible, not of the specified type, etc
If the type comes from an object created by a field whose type is ResourceConfig then a special class descriptor is created and returned.
Parameters: type The Java class
Returns: A suitable class descriptor or null