org.jboss.classadapter.spi
Interface ClassAdapterFactory

All Known Implementing Classes:
ReflectClassAdapterFactory

public interface ClassAdapterFactory

A class adapter factory.

The ClassAdapterFactory serves as the entry point for deciding whether it supports the class. e.g. the AOP ClassAdapterFactory may return null allowing the microcontainer to default back to reflection for the class.

Author:
Adrian Brock

Method Summary
 ClassAdapter getClassAdapter(Class clazz)
          Get a class adapter
 ClassAdapter getClassAdapter(String name, ClassLoader cl)
          Get a class adapter
 

Method Detail

getClassAdapter

ClassAdapter getClassAdapter(String name,
                             ClassLoader cl)
                             throws ClassNotFoundException
Get a class adapter

Parameters:
name - the class name
cl - the classloader
Returns:
the class adapter
Throws:
ClassNotFoundException - when there is no such class

getClassAdapter

ClassAdapter getClassAdapter(Class clazz)
Get a class adapter

Parameters:
clazz - the class
Returns:
the class adapter


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