|
||||||||||
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.BaseMetaDataAnnotationPlugin<T,C>
T
- info typeC
- annotation typepublic abstract class BaseMetaDataAnnotationPlugin<T extends org.jboss.reflect.spi.AnnotatedInfo,C extends Annotation>
Annotation plugin based on bean metadata.
Field Summary |
---|
Fields inherited from class org.jboss.util.JBossObject |
---|
hashCode, log, toString |
Constructor Summary | |
---|---|
protected |
BaseMetaDataAnnotationPlugin(Class<C> annotation)
|
Method Summary | |
---|---|
void |
applyAnnotation(T info,
org.jboss.metadata.spi.MetaData retrieval,
BeanMetaData beanMetaData)
Apply annotations to bean metadata. |
Class<C> |
getAnnotation()
Get the annotation class we are handling. |
Set<ElementType> |
getSupportedTypes()
Get all supported types. |
protected abstract Object |
internalApplyAnnotation(T info,
C annotation,
BeanMetaData beanMetaData)
Apply annotation since it's not present. |
protected Object |
internalApplyAnnotation(T info,
org.jboss.metadata.spi.MetaData retrieval,
C annotation,
BeanMetaData beanMetaData)
Apply annotation since it's not present. |
protected static boolean |
isAttributePresent(Class<?> value)
Does attribute have value. |
protected static boolean |
isAttributePresent(String value)
Does attribute have value. |
protected boolean |
isCleanup()
Is annotation marked as cleanup. |
protected boolean |
isCleanupOnly()
Is annotation marked as cleanup only. |
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. |
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 BaseMetaDataAnnotationPlugin(Class<C> annotation)
Method Detail |
---|
public final void applyAnnotation(T info, org.jboss.metadata.spi.MetaData retrieval, BeanMetaData beanMetaData) throws Throwable
MetaDataAnnotationPlugin
applyAnnotation
in interface MetaDataAnnotationPlugin<T extends org.jboss.reflect.spi.AnnotatedInfo,C extends Annotation>
info
- the annotated info we are checkingretrieval
- the metadata retrievalbeanMetaData
- the bean metadata
Throwable
- for any errorprotected boolean isMetaDataAlreadyPresent(T info, C annotation, BeanMetaData beanMetaData)
info
- the infoannotation
- the annotationbeanMetaData
- the bean meta data
protected Object internalApplyAnnotation(T info, org.jboss.metadata.spi.MetaData retrieval, C annotation, BeanMetaData beanMetaData) throws Throwable
info
- the inforetrieval
- the metadataannotation
- the annotationbeanMetaData
- the bean meta data
Throwable
- for any errorprotected abstract Object internalApplyAnnotation(T info, C annotation, BeanMetaData beanMetaData) throws Throwable
info
- the infoannotation
- the annotationbeanMetaData
- the bean meta data
Throwable
- for any errorprotected boolean isCleanup()
protected boolean isCleanupOnly()
protected static boolean isAttributePresent(String value)
value
- the value
protected static boolean isAttributePresent(Class<?> value)
value
- the value
protected abstract boolean isElementTypeSupported(ElementType type)
type
- the annotation element type
public Set<ElementType> getSupportedTypes()
MetaDataAnnotationPlugin
getSupportedTypes
in interface MetaDataAnnotationPlugin<T extends org.jboss.reflect.spi.AnnotatedInfo,C extends Annotation>
public Class<C> getAnnotation()
MetaDataAnnotationPlugin
getAnnotation
in interface MetaDataAnnotationPlugin<T extends org.jboss.reflect.spi.AnnotatedInfo,C extends Annotation>
protected void toString(org.jboss.util.JBossStringBuilder buffer)
toString
in class org.jboss.util.JBossObject
public void toShortString(org.jboss.util.JBossStringBuilder buffer)
toShortString
in interface org.jboss.util.JBossInterface
toShortString
in class org.jboss.util.JBossObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |