org.exolab.castor.xml.util
Interface ResolverStrategy
- CastorXMLStrategy
public interface ResolverStrategy
A resolver strategy implements how ClassDescriptor's are found for a
given class. It uses multiple ResolveCommand's for first time resolution,
but also some caching of already evaluated classes.
PROPERTY_CLASS_LOADER
public static final String PROPERTY_CLASS_LOADER
To set the class loader property for resolving.
PROPERTY_INTROSPECTOR
public static final String PROPERTY_INTROSPECTOR
To set the introspector property for resolving.
PROPERTY_LOAD_PACKAGE_MAPPINGS
public static final String PROPERTY_LOAD_PACKAGE_MAPPINGS
To set the LoadPackageMappings property for resolving.
PROPERTY_MAPPING_LOADER
public static final String PROPERTY_MAPPING_LOADER
To set the mapping loader property for resolving.
PROPERTY_USE_INTROSPECTION
public static final String PROPERTY_USE_INTROSPECTION
To set the use introspection property for resolving.
resolveClass
public ClassDescriptor resolveClass(ResolverStrategy.ResolverResults resolverResults,
String className)
throws ResolverException
Implementes a strategy how a class is resolved into a list of class descriptors.
resolverResults
- to put the resolver reszlts intoclassName
- the class to resolve
- the ClassDescriptor for the class or null if the class couldn't be resolved
resolvePackage
public void resolvePackage(ResolverStrategy.ResolverResults resolverResults,
String packageName)
throws ResolverException
Implementes a strategy how a package is resolved into a list of class descriptors.
resolverResults
- to put the resolver reszlts intopackageName
- the package to resolve
setProperty
public void setProperty(String key,
Object value)
To set properties for strategy and/or commands.
key
- name of the propertyvalue
- value the property is set to
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com