|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.util.JBossObject
org.jboss.kernel.plugins.annotations.AbstractAnnotationPlugin<T,C>
T - info typeC - annotation typepublic abstract class AbstractAnnotationPlugin<T extends org.jboss.reflect.spi.AnnotatedInfo,C extends Annotation>
Abstract annotation plugin.
| Field Summary |
|---|
| Fields inherited from class org.jboss.util.JBossObject |
|---|
hashCode, log, toString |
| Constructor Summary | |
|---|---|
protected |
AbstractAnnotationPlugin(Class<C> annotation)
|
| Method Summary | |
|---|---|
void |
applyAnnotation(T info,
org.jboss.metadata.spi.MetaData retrieval,
MetaDataVisitor visitor)
Apply the check for annotation. |
void |
cleanAnnotation(T info,
org.jboss.metadata.spi.MetaData retrieval,
MetaDataVisitor visitor)
Check if the annotation requires cleaning after itself. |
Class<C> |
getAnnotation()
Get the annotation class we are handling. |
Set<ElementType> |
getSupportedTypes()
Get all supported types. |
protected List<? extends MetaDataVisitorNode> |
internalApplyAnnotation(T info,
C annotation,
BeanMetaData beanMetaData)
Apply annotation since it's not present. |
protected List<? extends MetaDataVisitorNode> |
internalApplyAnnotation(T info,
C annotation,
KernelControllerContext context)
Apply annotation since it's not present. |
protected List<? extends MetaDataVisitorNode> |
internalApplyAnnotation(T info,
org.jboss.metadata.spi.MetaData retrieval,
C annotation,
KernelControllerContext context)
Apply annotation since it's not present. |
protected void |
internalCleanAnnotation(T info,
org.jboss.metadata.spi.MetaData retrieval,
C annotation,
KernelControllerContext context)
Clean annotation's actions. |
protected static boolean |
isAttributePresent(String value)
Does attribute have value. |
protected abstract boolean |
isElementTypeSupported(ElementType type)
Is type supported by plugin. |
protected boolean |
isMetaDataAlreadyPresent(T info,
C annotation,
BeanMetaData beanMetaData)
Is meta data already present. |
protected boolean |
isMetaDataAlreadyPresent(T info,
C annotation,
KernelControllerContext context)
Is meta data already present. |
void |
toShortString(org.jboss.util.JBossStringBuilder buffer)
|
protected void |
toString(org.jboss.util.JBossStringBuilder buffer)
|
| 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 |
| Constructor Detail |
|---|
protected AbstractAnnotationPlugin(Class<C> annotation)
| Method Detail |
|---|
protected static boolean isAttributePresent(String value)
value - the value
protected abstract boolean isElementTypeSupported(ElementType type)
type - the annotation element type
public Set<ElementType> getSupportedTypes()
AnnotationPlugin
getSupportedTypes in interface AnnotationPlugin<T extends org.jboss.reflect.spi.AnnotatedInfo,C extends Annotation>public Class<C> getAnnotation()
AnnotationPlugin
getAnnotation in interface AnnotationPlugin<T extends org.jboss.reflect.spi.AnnotatedInfo,C extends Annotation>
protected boolean isMetaDataAlreadyPresent(T info,
C annotation,
KernelControllerContext context)
info - the infoannotation - the annotationcontext - the context
protected boolean isMetaDataAlreadyPresent(T info,
C annotation,
BeanMetaData beanMetaData)
info - the infoannotation - the annotationbeanMetaData - the bean meta data
protected List<? extends MetaDataVisitorNode> internalApplyAnnotation(T info,
org.jboss.metadata.spi.MetaData retrieval,
C annotation,
KernelControllerContext context)
throws Throwable
info - the inforetrieval - the metadataannotation - the annotationcontext - the context
Throwable - for any error
protected List<? extends MetaDataVisitorNode> internalApplyAnnotation(T info,
C annotation,
KernelControllerContext context)
throws Throwable
info - the infoannotation - the annotationcontext - the context
Throwable - for any error
protected List<? extends MetaDataVisitorNode> internalApplyAnnotation(T info,
C annotation,
BeanMetaData beanMetaData)
throws Throwable
info - the infoannotation - the annotationbeanMetaData - the bean meta data
Throwable - for any error
public final void applyAnnotation(T info,
org.jboss.metadata.spi.MetaData retrieval,
MetaDataVisitor visitor)
throws Throwable
AnnotationPlugin
applyAnnotation in interface AnnotationPlugin<T extends org.jboss.reflect.spi.AnnotatedInfo,C extends Annotation>info - the inforetrieval - metadata instancevisitor - current context visitor
Throwable - for any error
public void cleanAnnotation(T info,
org.jboss.metadata.spi.MetaData retrieval,
MetaDataVisitor visitor)
throws Throwable
AnnotationPlugin
cleanAnnotation in interface AnnotationPlugin<T extends org.jboss.reflect.spi.AnnotatedInfo,C extends Annotation>info - the inforetrieval - metadata instancevisitor - current context visitor
Throwable - for any error
protected void internalCleanAnnotation(T info,
org.jboss.metadata.spi.MetaData retrieval,
C annotation,
KernelControllerContext context)
throws Throwable
info - the inforetrieval - the metadataannotation - the annotationcontext - the context
Throwable - for any errorprotected void toString(org.jboss.util.JBossStringBuilder buffer)
toString in class org.jboss.util.JBossObjectpublic void toShortString(org.jboss.util.JBossStringBuilder buffer)
toShortString in interface org.jboss.util.JBossInterfacetoShortString in class org.jboss.util.JBossObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||