JBoss Reflection 2.2.1.SP1

org.jboss.classadapter.spi
Interface ClassAdapterFactory

All Known Implementing Classes:
BasicClassAdapterFactory

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
 ClassAdapter getClassAdapter(TypeInfo typeInfo)
          Get a class adapter
 Configuration getConfiguration()
          Get the configuration.
 void setConfiguration(Configuration configuration)
          Set the typeInfoFactory.
 

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

getClassAdapter

ClassAdapter getClassAdapter(TypeInfo typeInfo)
Get a class adapter

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

getConfiguration

Configuration getConfiguration()
Get the configuration.

Returns:
the configuration.

setConfiguration

void setConfiguration(Configuration configuration)
Set the typeInfoFactory.

Parameters:
configuration - the configuration.

JBoss Reflection 2.2.1.SP1

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.