org.jboss.spring.annotations
Class SpringBeanAnnotationPlugin

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.kernel.plugins.annotations.BaseMetaDataAnnotationPlugin<T,C>
          extended by org.jboss.kernel.plugins.annotations.AbstractAnnotationPlugin<org.jboss.reflect.spi.ClassInfo,C>
              extended by org.jboss.kernel.plugins.annotations.ClassAnnotationPlugin<SpringBean>
                  extended by org.jboss.spring.annotations.SpringBeanAnnotationPlugin
All Implemented Interfaces:
Cloneable, AnnotationPlugin<org.jboss.reflect.spi.ClassInfo,SpringBean>, MetaDataAnnotationPlugin<org.jboss.reflect.spi.ClassInfo,SpringBean>, org.jboss.util.JBossInterface

public class SpringBeanAnnotationPlugin
extends ClassAnnotationPlugin<SpringBean>

Marker annotation plugin handler.

Author:
John Bailey, Davide Panelli

Field Summary
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
SpringBeanAnnotationPlugin()
           
 
Method Summary
protected  PropertyMetaData findBeanNameAwareInterface(org.jboss.reflect.spi.ClassInfo info, BeanMetaData metaData)
          Find the BeanNameAware interface.
protected  List<? extends MetaDataVisitorNode> internalApplyAnnotation(org.jboss.reflect.spi.ClassInfo info, SpringBean annotation, BeanMetaData metaData)
          Covariant override.
protected  boolean isMetaDataAlreadyPresent(org.jboss.reflect.spi.ClassInfo info, SpringBean annotation, BeanMetaData beanMetaData)
          Is meta data already present.
 
Methods inherited from class org.jboss.kernel.plugins.annotations.ClassAnnotationPlugin
isElementTypeSupported
 
Methods inherited from class org.jboss.kernel.plugins.annotations.AbstractAnnotationPlugin
applyAnnotation, checkIfNotAbstractBeanMetaDataSpecific, cleanAnnotation, internalApplyAnnotation, internalApplyAnnotation, internalCleanAnnotation, isMetaDataAlreadyPresent
 
Methods inherited from class org.jboss.kernel.plugins.annotations.BaseMetaDataAnnotationPlugin
applyAnnotation, getAnnotation, getSupportedTypes, isAttributePresent, isAttributePresent, isCleanup, isCleanupOnly, toShortString, toString
 
Methods inherited from class org.jboss.util.JBossObject
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, hashCode, list, notEqual, toShortString, toString, toStringImplementation
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.kernel.plugins.annotations.MetaDataAnnotationPlugin
applyAnnotation, getAnnotation, getSupportedTypes
 

Constructor Detail

SpringBeanAnnotationPlugin

public SpringBeanAnnotationPlugin()
Method Detail

internalApplyAnnotation

protected List<? extends MetaDataVisitorNode> internalApplyAnnotation(org.jboss.reflect.spi.ClassInfo info,
                                                                      SpringBean annotation,
                                                                      BeanMetaData metaData)
                                                               throws Throwable
Description copied from class: AbstractAnnotationPlugin
Covariant override.

Overrides:
internalApplyAnnotation in class AbstractAnnotationPlugin<org.jboss.reflect.spi.ClassInfo,SpringBean>
Parameters:
info - the info
annotation - the annotation
metaData - the bean meta data
Returns:
used to return covariant type
Throws:
Throwable - for any error

findBeanNameAwareInterface

protected PropertyMetaData findBeanNameAwareInterface(org.jboss.reflect.spi.ClassInfo info,
                                                      BeanMetaData metaData)
Find the BeanNameAware interface.

Parameters:
info - the type info
metaData - the metadata
Returns:
bean property metadata or null if not found

isMetaDataAlreadyPresent

protected boolean isMetaDataAlreadyPresent(org.jboss.reflect.spi.ClassInfo info,
                                           SpringBean annotation,
                                           BeanMetaData beanMetaData)
Description copied from class: BaseMetaDataAnnotationPlugin
Is meta data already present.

Overrides:
isMetaDataAlreadyPresent in class BaseMetaDataAnnotationPlugin<org.jboss.reflect.spi.ClassInfo,SpringBean>
Parameters:
info - the info
annotation - the annotation
beanMetaData - the bean meta data
Returns:
true if meta data already present


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