org.jboss.kernel.plugins.annotations
Class AbstractMetaDataAnnotationAdapter

java.lang.Object
  extended by org.jboss.kernel.plugins.annotations.CommonAnnotationAdapter<MetaDataAnnotationPlugin<?,?>,BeanMetaData>
      extended by org.jboss.kernel.plugins.annotations.AbstractMetaDataAnnotationAdapter
All Implemented Interfaces:
BeanMetaDataAnnotationAdapter
Direct Known Subclasses:
BasicBeanMetaDataAnnotationAdapter

public class AbstractMetaDataAnnotationAdapter
extends CommonAnnotationAdapter<MetaDataAnnotationPlugin<?,?>,BeanMetaData>
implements BeanMetaDataAnnotationAdapter

Abstract metadata annotation handler.

Author:
Ales Justin

Field Summary
 
Fields inherited from class org.jboss.kernel.plugins.annotations.CommonAnnotationAdapter
log
 
Constructor Summary
AbstractMetaDataAnnotationAdapter()
           
 
Method Summary
 void applyAnnotations(org.jboss.beans.info.spi.BeanInfo beanInfo, org.jboss.metadata.spi.MetaData metaData, BeanMetaData beanMetaData)
          Apply the annotations on bean metadata.
protected  void applyPlugin(MetaDataAnnotationPlugin plugin, org.jboss.reflect.spi.AnnotatedInfo info, org.jboss.metadata.spi.MetaData retrieval, BeanMetaData handle)
          Apply plugin.
protected  void cleanPlugin(MetaDataAnnotationPlugin<?,?> plugin, org.jboss.reflect.spi.AnnotatedInfo info, org.jboss.metadata.spi.MetaData retrieval, BeanMetaData handle)
          Clean plugin.
protected  Object getName(BeanMetaData handle)
          Get the name from handle.
 
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

AbstractMetaDataAnnotationAdapter

public AbstractMetaDataAnnotationAdapter()
Method Detail

applyAnnotations

public void applyAnnotations(org.jboss.beans.info.spi.BeanInfo beanInfo,
                             org.jboss.metadata.spi.MetaData metaData,
                             BeanMetaData beanMetaData)
                      throws Throwable
Description copied from interface: BeanMetaDataAnnotationAdapter
Apply the annotations on bean metadata.

Specified by:
applyAnnotations in interface BeanMetaDataAnnotationAdapter
Parameters:
beanInfo - the bean info
metaData - the metadata
beanMetaData - the bean meta data
Throws:
Throwable - for any error

applyPlugin

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

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

cleanPlugin

protected void cleanPlugin(MetaDataAnnotationPlugin<?,?> plugin,
                           org.jboss.reflect.spi.AnnotatedInfo info,
                           org.jboss.metadata.spi.MetaData retrieval,
                           BeanMetaData handle)
                    throws Throwable
Description copied from class: CommonAnnotationAdapter
Clean plugin.

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

getName

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

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


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