org.jboss.kernel.plugins.annotations.wb
Class AnnotationsSupplyAnnotationPlugin

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<Annotation>
                  extended by org.jboss.kernel.plugins.annotations.wb.AnnotationsSupplyAnnotationPlugin
All Implemented Interfaces:
Cloneable, AnnotationPlugin<org.jboss.reflect.spi.ClassInfo,Annotation>, MetaDataAnnotationPlugin<org.jboss.reflect.spi.ClassInfo,Annotation>, org.jboss.util.JBossInterface

public class AnnotationsSupplyAnnotationPlugin
extends ClassAnnotationPlugin<Annotation>

Generic annotations supply metadata value creator.

Author:
Ales Justin

Field Summary
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
AnnotationsSupplyAnnotationPlugin(Class annotation)
           
 
Method Summary
protected  List<? extends MetaDataVisitorNode> applyAnnotationsSupply(Annotation annotation, Set<SupplyMetaData> supplies)
          Apply annotations supply.
protected  AnnotationsSupply findAnnotationsSupply(Set<SupplyMetaData> supplies)
          Find the annotations supply.
protected  List<? extends MetaDataVisitorNode> internalApplyAnnotation(org.jboss.reflect.spi.ClassInfo info, org.jboss.metadata.spi.MetaData retrieval, Annotation annotation, BeanMetaData beanMetaData)
          Apply annotation since it's not 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, isMetaDataAlreadyPresent, 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

AnnotationsSupplyAnnotationPlugin

public AnnotationsSupplyAnnotationPlugin(Class annotation)
Method Detail

findAnnotationsSupply

protected AnnotationsSupply findAnnotationsSupply(Set<SupplyMetaData> supplies)
Find the annotations supply.

Parameters:
supplies - the supplies
Returns:
matcher supply or null if not found

internalApplyAnnotation

protected List<? extends MetaDataVisitorNode> internalApplyAnnotation(org.jboss.reflect.spi.ClassInfo info,
                                                                      org.jboss.metadata.spi.MetaData retrieval,
                                                                      Annotation annotation,
                                                                      BeanMetaData beanMetaData)
                                                               throws Throwable
Description copied from class: AbstractAnnotationPlugin
Apply annotation since it's not present.

Overrides:
internalApplyAnnotation in class AbstractAnnotationPlugin<org.jboss.reflect.spi.ClassInfo,Annotation>
Parameters:
info - the info
retrieval - the metadata
annotation - the annotation
beanMetaData - the bean metadata
Returns:
list of added meta data visitor nodes
Throws:
Throwable - for any error

applyAnnotationsSupply

protected List<? extends MetaDataVisitorNode> applyAnnotationsSupply(Annotation annotation,
                                                                     Set<SupplyMetaData> supplies)
Apply annotations supply.

Parameters:
annotation - the annotation
supplies - the supplies
Returns:
new supply


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