ResolverStrategy
public class CastorXMLStrategy extends java.lang.Object implements ResolverStrategy
ResolverStrategy.ResolverResults
PROPERTY_CLASS_LOADER, PROPERTY_INTROSPECTOR, PROPERTY_LOAD_PACKAGE_MAPPINGS, PROPERTY_MAPPING_LOADER, PROPERTY_USE_INTROSPECTION
Constructor | Description |
---|---|
CastorXMLStrategy() |
CastorXMLStrategy requires a configuration to be set.
|
Modifier and Type | Method | Description |
---|---|---|
ClassDescriptor |
resolveClass(ResolverStrategy.ResolverResults resolverResults,
java.lang.String className) |
Implementes a strategy how a class is resolved into a list of class descriptors.
|
void |
resolvePackage(ResolverStrategy.ResolverResults resolverResults,
java.lang.String packageName) |
Implementes a strategy how a package is resolved into a list of class descriptors.
|
void |
setProperty(java.lang.String key,
java.lang.Object value) |
To set properties for strategy and/or commands.
|
public CastorXMLStrategy()
public void setProperty(java.lang.String key, java.lang.Object value)
setProperty
in interface ResolverStrategy
key
- name of the propertyvalue
- value the property is set topublic ClassDescriptor resolveClass(ResolverStrategy.ResolverResults resolverResults, java.lang.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, java.lang.String packageName) throws ResolverException
resolvePackage
in interface ResolverStrategy
resolverResults
- to put the resolver reszlts intopackageName
- the package to resolveResolverException
- in case that resolving fails fatallyIntalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com