org.exolab.castor.xml.util
Interface ResolverPackageCommand
- All Known Implementing Classes:
- AbstractResolverPackageCommand, ByCDR, ByPackageMapping
public interface ResolverPackageCommand
A command used by a resolver strategy to get class descriptors for a package.
The number of class descriptors returned will vary between zero and many...
Commands are planned to be something like a service which might get invoked
multiple times in parallel. So no resolve specific states are allowed to be
stored in the class state!
- Since:
- 1.2
- Version:
- $Revision$ $Date$
- Author:
- Joachim Grueneis
Method Summary |
java.util.Map |
resolve(java.lang.String packageName,
java.util.Map p)
The one and only purpose resolver commands are good for ;-) . |
resolve
java.util.Map resolve(java.lang.String packageName,
java.util.Map p)
throws ResolverException
- The one and only purpose resolver commands are good for ;-) . Resolving
the package giving and returning (a maybe empty) list of descriptors found.
The descriptors are put into a Map of String (className) and Class (descriptor
class).
- Parameters:
packageName
- the name of the package to resolvep
- the Properties to be used at resolve
- Returns:
- a Map of className and XMLClassDescriptor
- Throws:
java.lang.IllegalArgumentException
- if package name is null or empty
ResolverException
- in case that resolving fails fatally
Copyright © 2011. All Rights Reserved.