org.codehaus.annogen.override
Interface AnnoContext


public interface AnnoContext

Provides some context services for overriders. REVIEW does this actually need to be exposed?

Author:
Patrick Calahan <email: pcal-at-bea-dot-com>

Nested Class Summary
static class AnnoContext.Factory
           
 
Method Summary
 AnnoBean createAnnoBeanFor(java.lang.Class annoBeanClass)
           
 java.lang.Class getAnnobeanClassFor(java.lang.Class declOrAnnoBeanClass)
          If the given class is a 175 annotation type, returns the annogen'ed class which acts as a proxy to it.
 java.lang.ClassLoader getClassLoader()
           
 java.lang.Class getJsr175ClassForAnnobeanClass(java.lang.Class annoBeanClass)
          Returns the 175 annotation class which corresponds to the given annobean class.
 org.codehaus.jam.provider.JamLogger getLogger()
           
 

Method Detail

getAnnobeanClassFor

public java.lang.Class getAnnobeanClassFor(java.lang.Class declOrAnnoBeanClass)
                                    throws java.lang.ClassNotFoundException

If the given class is a 175 annotation type, returns the annogen'ed class which acts as a proxy to it. If the given class already is a annobean class, simply returns it.

Throws:
java.lang.ClassNotFoundException - if the bean class could not be loaded

getJsr175ClassForAnnobeanClass

public java.lang.Class getJsr175ClassForAnnobeanClass(java.lang.Class annoBeanClass)
                                               throws java.lang.ClassNotFoundException

Returns the 175 annotation class which corresponds to the given annobean class.

Throws:
java.lang.IllegalArgumentException - if the given class is not an annobean class.
java.lang.IllegalStateException - if the current vm is pre-1.5.
java.lang.ClassNotFoundException - if the 175 type could not be loaded

getLogger

public org.codehaus.jam.provider.JamLogger getLogger()

getClassLoader

public java.lang.ClassLoader getClassLoader()

createAnnoBeanFor

public AnnoBean createAnnoBeanFor(java.lang.Class annoBeanClass)