org.jboss.classadapter.spi
Interface ClassAdapter

All Superinterfaces:
Cloneable, org.jboss.util.JBossInterface
All Known Implementing Classes:
BasicClassAdapter

public interface ClassAdapter
extends org.jboss.util.JBossInterface

A class adapter.

A class adapter is the integration point for manipulating class information at runtime, e.g. overriding annotations or obtaining an aop instance advisor.

The class adapter has the following protocol.

  1. Use getClassInfo to obtain information about the class.
  2. Obtain an Instance ClassAdapter if the class information should be overridden at the instance level, e.g. annotations
  3. Obtain the dependencies of the Class/Instance and any advice factories, e.g. @Depends annotations
  4. Obtain the JoinpointFactory so the instance can be constructed.

Author:
Adrian Brock

Method Summary
 ClassInfo getClassInfo()
          Get the class info.
 ClassLoader getClassLoader()
          Get the classloader associated with this class adapter
 JoinpointFactory getJoinpointFactory()
          Get the Joinpoint Factory for this adapter.
 
Methods inherited from interface org.jboss.util.JBossInterface
clone, toShortString, toShortString
 

Method Detail

getClassInfo

ClassInfo getClassInfo()
Get the class info.

Returns:
the class info

getJoinpointFactory

JoinpointFactory getJoinpointFactory()
Get the Joinpoint Factory for this adapter.

Returns:
the joinpoint factory

getClassLoader

ClassLoader getClassLoader()
Get the classloader associated with this class adapter

Returns:
the classloader


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