org.jboss.kernel.plugins.annotations
Class AbstractBeanAnnotationAdapter

java.lang.Object
  extended by org.jboss.kernel.plugins.annotations.CommonAnnotationAdapter<AnnotationPlugin<?,?>,MetaDataVisitor>
      extended by org.jboss.kernel.plugins.annotations.AbstractBeanAnnotationAdapter
All Implemented Interfaces:
BeanAnnotationAdapter
Direct Known Subclasses:
BasicBeanAnnotationAdapter

public class AbstractBeanAnnotationAdapter
extends CommonAnnotationAdapter<AnnotationPlugin<?,?>,MetaDataVisitor>
implements BeanAnnotationAdapter

Abstract bean annotation handler.

Author:
Ales Justin

Field Summary
 
Fields inherited from class org.jboss.kernel.plugins.annotations.CommonAnnotationAdapter
log
 
Constructor Summary
AbstractBeanAnnotationAdapter()
           
 
Method Summary
 void applyAnnotations(MetaDataVisitor visitor)
          Apply the annotations.
protected  void applyPlugin(AnnotationPlugin plugin, org.jboss.reflect.spi.AnnotatedInfo info, org.jboss.metadata.spi.MetaData retrieval, MetaDataVisitor handle)
          Apply plugin.
 void cleanAnnotations(MetaDataVisitor visitor)
          Clean the annotations.
protected  void cleanPlugin(AnnotationPlugin plugin, org.jboss.reflect.spi.AnnotatedInfo info, org.jboss.metadata.spi.MetaData retrieval, MetaDataVisitor handle)
          Clean plugin.
protected  Object getName(MetaDataVisitor handle)
          Get the name from handle.
protected  void handleAnnotations(MetaDataVisitor visitor, boolean isApplyPhase)
          Handle apply or cleanup of annotations.
 
Methods inherited from class org.jboss.kernel.plugins.annotations.CommonAnnotationAdapter
addAnnotationPlugin, getPlugins, getStaticMethods, handleAnnotations, handleMethod, removeAnnotationPlugin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBeanAnnotationAdapter

public AbstractBeanAnnotationAdapter()
Method Detail

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

applyPlugin

protected void applyPlugin(AnnotationPlugin plugin,
                           org.jboss.reflect.spi.AnnotatedInfo info,
                           org.jboss.metadata.spi.MetaData retrieval,
                           MetaDataVisitor handle)
                    throws Throwable
Description copied from class: CommonAnnotationAdapter
Apply plugin.

Specified by:
applyPlugin in class CommonAnnotationAdapter<AnnotationPlugin<?,?>,MetaDataVisitor>
Parameters:
plugin - the plugin
info - the bean info
retrieval - the metadata
handle - the handle
Throws:
Throwable - for any error

cleanPlugin

protected void cleanPlugin(AnnotationPlugin plugin,
                           org.jboss.reflect.spi.AnnotatedInfo info,
                           org.jboss.metadata.spi.MetaData retrieval,
                           MetaDataVisitor handle)
                    throws Throwable
Description copied from class: CommonAnnotationAdapter
Clean plugin.

Specified by:
cleanPlugin in class CommonAnnotationAdapter<AnnotationPlugin<?,?>,MetaDataVisitor>
Parameters:
plugin - the plugin
info - the bean info
retrieval - the metadata
handle - the handle
Throws:
Throwable - for any error

getName

protected Object getName(MetaDataVisitor handle)
Description copied from class: CommonAnnotationAdapter
Get the name from handle.

Specified by:
getName in class CommonAnnotationAdapter<AnnotationPlugin<?,?>,MetaDataVisitor>
Parameters:
handle - the handle
Returns:
handle's name


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