org.exolab.castor.xml.util.resolvers
Class ByIntrospection

java.lang.Object
  extended by org.exolab.castor.xml.util.resolvers.AbstractResolverClassCommand
      extended by org.exolab.castor.xml.util.resolvers.ByIntrospection
All 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.

Since:
1.2
Version:
$Revision$ $Date$
Author:
Joachim Grueneis, Steven Dolg

Constructor Summary
ByIntrospection()
          No specific stuff needed.
 
Method Summary
protected  java.util.Map internalResolve(java.lang.String className, java.lang.ClassLoader classLoader, java.util.Map properties)
          Creates an XMLClassDescriptor for the given type by using introspection.
 
Methods inherited from class org.exolab.castor.xml.util.resolvers.AbstractResolverClassCommand
resolve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByIntrospection

public ByIntrospection()
No specific stuff needed.

Method Detail

internalResolve

protected java.util.Map internalResolve(java.lang.String className,
                                        java.lang.ClassLoader classLoader,
                                        java.util.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.

The required parameter checks are in the public method and here we expect that the resolve logic itself is implemented.

Specified by:
internalResolve in class AbstractResolverClassCommand
Parameters:
className - the name of the class to resolve
classLoader - the class loader to use
properties - the resolve properties to use
Returns:
a Map of className and XMLClassDescriptor
Throws:
ResolverException - if unrecoverable problems in resolve occured


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