org.jboss.classadapter.plugins.reflect
Class ReflectClassAdapterFactory

java.lang.Object
  extended byorg.jboss.classadapter.plugins.reflect.ReflectClassAdapterFactory
All Implemented Interfaces:
ClassAdapterFactory

public class ReflectClassAdapterFactory
extends Object
implements ClassAdapterFactory

A reflected class adapter factory.

Author:
Adrian Brock

Field Summary
protected  TypeInfoFactory typeInfoFactory
          The type info factory
 
Constructor Summary
ReflectClassAdapterFactory()
           
 
Method Summary
protected  ClassAdapter createClassAdapter(TypeInfo typeInfo)
          Create a class adapter for the type info
 ClassAdapter getClassAdapter(Class clazz)
          Get a class adapter
 ClassAdapter getClassAdapter(String name, ClassLoader cl)
          Get a class adapter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

typeInfoFactory

protected TypeInfoFactory typeInfoFactory
The type info factory

Constructor Detail

ReflectClassAdapterFactory

public ReflectClassAdapterFactory()
Method Detail

getClassAdapter

public ClassAdapter getClassAdapter(Class clazz)
Description copied from interface: ClassAdapterFactory
Get a class adapter

Specified by:
getClassAdapter in interface ClassAdapterFactory
Parameters:
clazz - the class
Returns:
the class adapter

getClassAdapter

public ClassAdapter getClassAdapter(String name,
                                    ClassLoader cl)
                             throws ClassNotFoundException
Description copied from interface: ClassAdapterFactory
Get a class adapter

Specified by:
getClassAdapter in interface ClassAdapterFactory
Parameters:
name - the class name
cl - the classloader
Returns:
the class adapter
Throws:
ClassNotFoundException - when there is no such class

createClassAdapter

protected ClassAdapter createClassAdapter(TypeInfo typeInfo)
Create a class adapter for the type info

Parameters:
typeInfo - the type info
Returns:
the class adapter


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