org.exolab.castor.xml.util.resolvers

Class ByIntrospection

Implemented Interfaces:
ResolverClassCommand

public class ByIntrospection
extends AbstractResolverClassCommand

Resolve a class by creating a generic descriptor based on the informations read from the class with introspection.
Version:
$Revision$ $Date$
Authors:
Joachim Grueneis
Steven Dolg
Since:
1.2

Constructor Summary

ByIntrospection()
No specific stuff needed.

Method Summary

protected Map
internalResolve(String className, ClassLoader classLoader, Map properties)
Creates an XMLClassDescriptor for the given type by using introspection.

Methods inherited from class org.exolab.castor.xml.util.resolvers.AbstractResolverClassCommand

internalResolve, resolve

Constructor Details

ByIntrospection

public ByIntrospection()
No specific stuff needed.

Method Details

internalResolve

protected Map internalResolve(String className,
                              ClassLoader classLoader,
                              Map properties)
            throws ResolverException
Creates an XMLClassDescriptor for the given type by using introspection. This method will rely on the Introspector set with setIntrospector. If a descriptor is successfully created it will be added to the DescriptorCache.
NOTE: If this XMLClassDescriptorResolver is NOT configured to use introspection this method will NOT create an descriptor.

Overrides:
internalResolve in interface AbstractResolverClassCommand

Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com