Class ByPackageMapping
- java.lang.Object
-
- org.exolab.castor.xml.util.resolvers.AbstractResolverPackageCommand
-
- org.exolab.castor.xml.util.resolvers.ByPackageMapping
-
- All 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 theMappingLoader
.
Further calls to this command with the same package name will not be processed.- Since:
- 1.2
- Version:
- $Revision$ $Date$
- Author:
- Joachim Grueneis, Steven Dolg
-
-
Constructor Summary
Constructors Constructor Description ByPackageMapping()
No specific stuff needed.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Map<java.lang.String,ClassDescriptor>
internalResolve(java.lang.String packageName, java.lang.ClassLoader classLoader, java.util.Map properties)
The required parameter checks are in the public method and here we expect that the resolve logic itself is implemented.-
Methods inherited from class org.exolab.castor.xml.util.resolvers.AbstractResolverPackageCommand
isEmptyPackageName, resolve
-
-
-
-
Method Detail
-
internalResolve
protected java.util.Map<java.lang.String,ClassDescriptor> internalResolve(java.lang.String packageName, java.lang.ClassLoader classLoader, java.util.Map properties) throws ResolverException
The required parameter checks are in the public method and here we expect that the resolve logic itself is implemented.- Specified by:
internalResolve
in classAbstractResolverPackageCommand
classLoader
- the class loader to useproperties
- the resolve properties to use- Returns:
- a Map of className and XMLClassDescriptor
- Throws:
ResolverException
- in case of unrecoverable problems at resolving
-
-