org.jboss.reflect.plugins.introspection
Class IntrospectionTypeInfoFactory

java.lang.Object
  extended by org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactory
All Implemented Interfaces:
TypeInfoFactory

public class IntrospectionTypeInfoFactory
extends Object
implements TypeInfoFactory

An introspection type factory that uses a static delegate.

This avoids recalculating things everytime a factory is constructed inside the same classloader

Author:
Adrian Brock

Constructor Summary
IntrospectionTypeInfoFactory()
           
 
Method Summary
 TypeInfo getTypeInfo(Class clazz)
          Get a type info
 TypeInfo getTypeInfo(String name, ClassLoader cl)
          Get a type info
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntrospectionTypeInfoFactory

public IntrospectionTypeInfoFactory()
Method Detail

getTypeInfo

public TypeInfo getTypeInfo(Class clazz)
Description copied from interface: TypeInfoFactory
Get a type info

Specified by:
getTypeInfo in interface TypeInfoFactory
Parameters:
clazz - the class
Returns:
the type info

getTypeInfo

public TypeInfo getTypeInfo(String name,
                            ClassLoader cl)
                     throws ClassNotFoundException
Description copied from interface: TypeInfoFactory
Get a type info

Specified by:
getTypeInfo in interface TypeInfoFactory
Parameters:
name - the class name
cl - the classloader
Returns:
the type info
Throws:
ClassNotFoundException - when there is no such class


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.