org.jboss.kernel.plugins.annotations.wb
Class AnnotationsSupplyAnnotationPlugin
java.lang.Object
org.jboss.util.JBossObject
org.jboss.kernel.plugins.annotations.BaseMetaDataAnnotationPlugin<T,C>
org.jboss.kernel.plugins.annotations.AbstractAnnotationPlugin<org.jboss.reflect.spi.ClassInfo,C>
org.jboss.kernel.plugins.annotations.ClassAnnotationPlugin<Annotation>
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
Fields inherited from class org.jboss.util.JBossObject |
hashCode, log, toString |
Methods inherited from class org.jboss.util.JBossObject |
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, hashCode, list, notEqual, toShortString, toString, toStringImplementation |
AnnotationsSupplyAnnotationPlugin
public AnnotationsSupplyAnnotationPlugin(Class annotation)
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 inforetrieval
- the metadataannotation
- the annotationbeanMetaData
- 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 annotationsupplies
- the supplies
- Returns:
- new supply
Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.