org.exolab.castor.xml.util.resolvers
Class ByMappingLoader

java.lang.Object
  extended by org.exolab.castor.xml.util.resolvers.AbstractResolverClassCommand
      extended by org.exolab.castor.xml.util.resolvers.ByMappingLoader
All Implemented Interfaces:
ResolverClassCommand

public class ByMappingLoader
extends AbstractResolverClassCommand

How to sought a descriptor for a class in a specified mapping loader.

Since:
1.2
Version:
$Revision$ $Date$
Author:
Joachim Grueneis, Steven Dolg

Constructor Summary
ByMappingLoader()
          No specific stuff needed.
 
Method Summary
protected  java.util.Map internalResolve(java.lang.String className, java.lang.ClassLoader classLoader, java.util.Map properties)
          If a mapping loader is set in the configuration the descriptor for the given class / className is taken from the mapping loader and put into the cache.
 
Methods inherited from class org.exolab.castor.xml.util.resolvers.AbstractResolverClassCommand
resolve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByMappingLoader

public ByMappingLoader()
No specific stuff needed.

Method Detail

internalResolve

protected java.util.Map internalResolve(java.lang.String className,
                                        java.lang.ClassLoader classLoader,
                                        java.util.Map properties)
                                 throws ResolverException
If a mapping loader is set in the configuration the descriptor for the given class / className is taken from the mapping loader and put into the cache.
The required parameter checks are in the public method and here we expect that the resolve logic itself is implemented.

Specified by:
internalResolve in class AbstractResolverClassCommand
Parameters:
className - the name of the class to resolve
classLoader - the class loader to use
properties - the resolve properties to use
Returns:
a Map of className and XMLClassDescriptor
Throws:
ResolverException - if unrecoverable problems in resolve occured


Copyright © 2011. All Rights Reserved.