|
||||||||||
| 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>
org.jboss.kernel.plugins.annotations.AbstractAdaptersAnnotationPlugin<T,C>
org.jboss.kernel.plugins.annotations.AbstractParameterAnnotationPlugin<T,C,P>
T - info typeC - annotation typeP - mutable parametrized typepublic abstract class AbstractParameterAnnotationPlugin<T extends org.jboss.reflect.spi.AnnotatedInfo,C extends Annotation,P extends MutableParameterizedMetaData>
Annotation plugin for handling annotations that take parameters.
| Field Summary |
|---|
| Fields inherited from class org.jboss.kernel.plugins.annotations.AbstractAdaptersAnnotationPlugin |
|---|
adapters |
| Fields inherited from class org.jboss.util.JBossObject |
|---|
hashCode, log, toString |
| Constructor Summary | |
|---|---|
protected |
AbstractParameterAnnotationPlugin(Class<C> annotation,
Annotation2ValueMetaDataAdapter... adapters)
|
| Method Summary | |
|---|---|
protected abstract boolean |
checkAnnotatedInfo(ElementType type)
Check additional element type - apart from Parameter element type. |
protected P |
createParametrizedMetaData(T info)
Create new Parametrized metadata. |
protected P |
createParametrizedMetaData(T info,
C annotation)
Create new Parametrized metadata. |
protected P |
createParametrizedMetaData(T info,
C annotation,
BeanMetaData beanMetaData)
Create new Parametrized metadata. |
protected P |
createParametrizedMetaData(T info,
C annotation,
KernelControllerContext context)
Create new Parametrized metadata. |
protected abstract org.jboss.reflect.spi.ParameterInfo[] |
getParameters(T info)
Get the parameters infos from type. |
protected abstract List<? extends MetaDataVisitorNode> |
handleParameterlessInfo(T info,
C annotation,
BeanMetaData beanMetaData)
Handle info which has zero parameters. |
protected List<? extends MetaDataVisitorNode> |
handleParameterlessInfo(T info,
C annotation,
KernelControllerContext context)
Handle info which has zero parameters. |
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 boolean |
isElementTypeSupported(ElementType type)
Is type supported by plugin. |
protected abstract void |
setParameterizedMetaData(P parameterizedMetaData,
BeanMetaData beanMetaData)
Set the ParameterizedMetaData instance. |
protected void |
setParameterizedMetaData(P parameterizedMetaData,
KernelControllerContext context)
Set the ParameterizedMetaData instance. |
| Methods inherited from class org.jboss.kernel.plugins.annotations.AbstractAnnotationPlugin |
|---|
applyAnnotation, cleanAnnotation, getAnnotation, getSupportedTypes, internalApplyAnnotation, internalApplyAnnotation, internalCleanAnnotation, isAttributePresent, isMetaDataAlreadyPresent, 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 |
| Constructor Detail |
|---|
protected AbstractParameterAnnotationPlugin(Class<C> annotation,
Annotation2ValueMetaDataAdapter... adapters)
| Method Detail |
|---|
protected abstract boolean checkAnnotatedInfo(ElementType type)
type - the type
protected boolean isElementTypeSupported(ElementType type)
AbstractAnnotationPlugin
isElementTypeSupported in class AbstractAnnotationPlugin<T extends org.jboss.reflect.spi.AnnotatedInfo,C extends Annotation>type - the annotation element type
protected abstract org.jboss.reflect.spi.ParameterInfo[] getParameters(T info)
info - the type
protected List<? extends MetaDataVisitorNode> handleParameterlessInfo(T info,
C annotation,
KernelControllerContext context)
info - the infoannotation - the annotationcontext - the context
protected abstract List<? extends MetaDataVisitorNode> handleParameterlessInfo(T info,
C annotation,
BeanMetaData beanMetaData)
info - the infoannotation - the annotationbeanMetaData - the bean metadata
protected P createParametrizedMetaData(T info,
C annotation,
KernelControllerContext context)
info - the infoannotation - the annotationcontext - the context
protected P createParametrizedMetaData(T info,
C annotation,
BeanMetaData beanMetaData)
info - the infoannotation - the annotationbeanMetaData - the bean metadata
protected P createParametrizedMetaData(T info,
C annotation)
info - the infoannotation - the annotation
protected P createParametrizedMetaData(T info)
info - the info
protected void setParameterizedMetaData(P parameterizedMetaData,
KernelControllerContext context)
parameterizedMetaData - the parameterized metadatacontext - the context
protected abstract void setParameterizedMetaData(P parameterizedMetaData,
BeanMetaData beanMetaData)
parameterizedMetaData - the parameterized metadatabeanMetaData - the bean metadata
protected List<? extends MetaDataVisitorNode> internalApplyAnnotation(T info,
org.jboss.metadata.spi.MetaData retrieval,
C annotation,
KernelControllerContext context)
throws Throwable
AbstractAnnotationPlugin
internalApplyAnnotation in class AbstractAnnotationPlugin<T extends org.jboss.reflect.spi.AnnotatedInfo,C extends Annotation>info - the inforetrieval - the metadataannotation - the annotationcontext - the context
Throwable - for any error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||