public class CastorXMLStrategy extends Object implements ResolverStrategy
ResolverStrategy.ResolverResults
PROPERTY_CLASS_LOADER, PROPERTY_INTROSPECTOR, PROPERTY_LOAD_PACKAGE_MAPPINGS, PROPERTY_MAPPING_LOADER, PROPERTY_USE_INTROSPECTION
Constructor and Description |
---|
CastorXMLStrategy()
CastorXMLStrategy requires a configuration to be set.
|
Modifier and Type | Method and Description |
---|---|
ClassDescriptor |
resolveClass(ResolverStrategy.ResolverResults resolverResults,
String className)
Implementes a strategy how a class is resolved into a list of class descriptors.
|
void |
resolvePackage(ResolverStrategy.ResolverResults resolverResults,
String packageName)
Implementes a strategy how a package is resolved into a list of class descriptors.
|
void |
setProperty(String key,
Object value)
To set properties for strategy and/or commands.
|
public CastorXMLStrategy()
public void setProperty(String key, Object value)
setProperty
in interface ResolverStrategy
key
- name of the propertyvalue
- value the property is set topublic ClassDescriptor resolveClass(ResolverStrategy.ResolverResults resolverResults, String className) throws ResolverException
resolveClass
in interface ResolverStrategy
resolverResults
- to put the resolver reszlts intoclassName
- the class to resolveResolverException
- in case that resolving fails fatallypublic void resolvePackage(ResolverStrategy.ResolverResults resolverResults, String packageName) throws ResolverException
resolvePackage
in interface ResolverStrategy
resolverResults
- to put the resolver reszlts intopackageName
- the package to resolveResolverException
- in case that resolving fails fatallyCopyright © 2013. All rights reserved.