org.exolab.castor.xml.util.resolvers

Class AbstractResolverPackageCommand

Implemented Interfaces:
ResolverPackageCommand
Known Direct Subclasses:
ByCDR, ByPackageMapping

public abstract class AbstractResolverPackageCommand
extends java.lang.Object
implements ResolverPackageCommand

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 packageName, ClassLoader classLoader, Map props)
The required parameter checks are in the public method and here we expect that the resolve logic itself is implemented.
protected boolean
isEmptyPackageName(String packageName)
Is the given package name empty?
Map
resolve(String packageName, Map properties)

Method Details

internalResolve

protected abstract Map internalResolve(String packageName,
                                       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:
classLoader - the class loader to use
props - the resolve properties to use
Returns:
a Map of className and XMLClassDescriptor
Throws:
ResolverException - in case of unrecoverable problems at resolving

isEmptyPackageName

protected final boolean isEmptyPackageName(String packageName)
Is the given package name empty?
Parameters:
packageName - the package name to check
Returns:
true if the String is empty

resolve

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

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