org.jboss.kernel.plugins.annotations
Class AbstractBeanAnnotationAdapter

java.lang.Object
  extended by org.jboss.kernel.plugins.annotations.AbstractBeanAnnotationAdapter
All Implemented Interfaces:
BeanAnnotationAdapter
Direct Known Subclasses:
BasicBeanAnnotationAdapter

public abstract class AbstractBeanAnnotationAdapter
extends Object
implements BeanAnnotationAdapter

Abstract bean annotation handler.

Author:
Ales Justin

Field Summary
protected  Set<AnnotationPlugin> classAnnotationPlugins
           
protected  Set<AnnotationPlugin> constructorAnnotationPlugins
           
protected  Set<AnnotationPlugin> fieldAnnotationPlugins
           
protected  org.jboss.logging.Logger log
           
protected  Set<AnnotationPlugin> methodAnnotationPlugins
           
protected  Set<AnnotationPlugin> propertyAnnotationPlugins
           
 
Constructor Summary
AbstractBeanAnnotationAdapter()
           
 
Method Summary
protected  void addAnnotationPlugin(AnnotationPlugin plugin)
          Add the annotation plugin.
 void applyAnnotations(MetaDataVisitor visitor)
          Apply the annotations.
 void cleanAnnotations(MetaDataVisitor visitor)
          Clean the annotations.
protected  void handleAnnotations(MetaDataVisitor visitor, boolean isApplyPhase)
          Handle apply or cleanup of annotations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.jboss.logging.Logger log

classAnnotationPlugins

protected Set<AnnotationPlugin> classAnnotationPlugins

constructorAnnotationPlugins

protected Set<AnnotationPlugin> constructorAnnotationPlugins

propertyAnnotationPlugins

protected Set<AnnotationPlugin> propertyAnnotationPlugins

methodAnnotationPlugins

protected Set<AnnotationPlugin> methodAnnotationPlugins

fieldAnnotationPlugins

protected Set<AnnotationPlugin> fieldAnnotationPlugins
Constructor Detail

AbstractBeanAnnotationAdapter

public AbstractBeanAnnotationAdapter()
Method Detail

addAnnotationPlugin

protected void addAnnotationPlugin(AnnotationPlugin plugin)
Add the annotation plugin. Breaks down the plugin usage into different ElementType support collections.

Parameters:
plugin - the annotation plugin

applyAnnotations

public void applyAnnotations(MetaDataVisitor visitor)
                      throws Throwable
Description copied from interface: BeanAnnotationAdapter
Apply the annotations.

Specified by:
applyAnnotations in interface BeanAnnotationAdapter
Parameters:
visitor - the visitor
Throws:
Throwable - for any error

cleanAnnotations

public void cleanAnnotations(MetaDataVisitor visitor)
                      throws Throwable
Description copied from interface: BeanAnnotationAdapter
Clean the annotations.

Specified by:
cleanAnnotations in interface BeanAnnotationAdapter
Parameters:
visitor - the visitor
Throws:
Throwable - for any error

handleAnnotations

protected void handleAnnotations(MetaDataVisitor visitor,
                                 boolean isApplyPhase)
                          throws Throwable
Handle apply or cleanup of annotations.

Parameters:
visitor - the metadata visitor
isApplyPhase - is this apply phase
Throws:
Throwable - for any error


Copyright ? 2007 JBoss Inc.. All Rights Reserved.