org.exolab.castor.xml.util.resolvers

Class ByPackageMapping

Implemented Interfaces:
ResolverPackageCommand

public class ByPackageMapping
extends AbstractResolverPackageCommand

Tries to load the package mapping file for the given package.
If the mapping file is available and could be loaded properly the descriptors listed in it are added to the description class cache of the configuration.
To disable loading of pacakge mapping files just don't use this command.
If a mapping file is not available for the given package this method will not load any descriptors and not throw any exceptions.
The class loader specified in the configuration is used.
The mapping file - if available - is loaded using the MappingLoader.

Further calls to this command with the same package name will not be processed.
Version:
$Revision$ $Date$
Authors:
Joachim Grueneis
Steven Dolg
Since:
1.2

Constructor Summary

ByPackageMapping()
No specific stuff needed.

Method Summary

protected Map
internalResolve(String packageName, ClassLoader classLoader, Map properties)

Methods inherited from class org.exolab.castor.xml.util.resolvers.AbstractResolverPackageCommand

internalResolve, isEmptyPackageName, resolve

Constructor Details

ByPackageMapping

public ByPackageMapping()
No specific stuff needed.

Method Details

internalResolve

protected Map internalResolve(String packageName,
                              ClassLoader classLoader,
                              Map properties)
            throws ResolverException
Overrides:
internalResolve in interface AbstractResolverPackageCommand

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