org.exolab.castor.xml.util.resolvers

Class AbstractResolverClassCommand

Implemented Interfaces:
ResolverClassCommand
Known Direct Subclasses:
ByDescriptorClass, ByIntrospection, ByMappingLoader

public abstract class AbstractResolverClassCommand
extends java.lang.Object
implements ResolverClassCommand

The abstract resolver command provides the argument checking, writes a debug message and reads the class loader from the properties... All specific code is found in the extended classes.
Version:
$Id$
Author:
Joachim Grueneis, jgrueneis AT gmail DOT com
Since:
1.2

Method Summary

protected abstract Map
internalResolve(String className, ClassLoader classLoader, Map props)
The required parameter checks are in the public method and here we expect that the resolve logic itself is implemented.
Map
resolve(String className, Map properties)

Method Details

internalResolve

protected abstract Map internalResolve(String className,
                                       ClassLoader classLoader,
                                       Map props)
            throws ResolverException
The required parameter checks are in the public method and here we expect that the resolve logic itself is implemented.
Parameters:
className - the name of the class to resolve
classLoader - the class loader to use
props - the resolve properties to use
Returns:
a Map of className and XMLClassDescriptor
Throws:
ResolverException - if unrecoverable problems in resolve occured

resolve

public final Map resolve(String className,
                         Map properties)
            throws ResolverException
Specified by:
resolve in interface ResolverClassCommand

Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com