|
||||||||||
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>
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,
Set<Annotation2ValueMetaDataAdapter<? extends Annotation>> adapters)
|
Method Summary | |
---|---|
protected abstract boolean |
checkAnnotatedInfo(ElementType type)
Check additional element type - apart from Parameter element type. |
protected abstract org.jboss.metadata.spi.signature.Signature |
createParametersSignature(String name,
String[] parameters,
int index)
Create parameters signature. |
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 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> |
internalApplyAnnotation(T info,
org.jboss.metadata.spi.MetaData retrieval,
C annotation,
BeanMetaData beanMetaData)
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. |
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 |
---|
protected AbstractParameterAnnotationPlugin(Class<C> annotation, Set<Annotation2ValueMetaDataAdapter<? extends Annotation>> adapters)
Method Detail |
---|
protected abstract boolean checkAnnotatedInfo(ElementType type)
type
- the type
protected boolean isElementTypeSupported(ElementType type)
BaseMetaDataAnnotationPlugin
isElementTypeSupported
in class BaseMetaDataAnnotationPlugin<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 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, 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 abstract void setParameterizedMetaData(P parameterizedMetaData, BeanMetaData beanMetaData)
parameterizedMetaData
- the parameterized metadatabeanMetaData
- the bean metadataprotected List<? extends MetaDataVisitorNode> internalApplyAnnotation(T info, org.jboss.metadata.spi.MetaData retrieval, C annotation, BeanMetaData beanMetaData) throws Throwable
AbstractAnnotationPlugin
internalApplyAnnotation
in class AbstractAnnotationPlugin<T extends org.jboss.reflect.spi.AnnotatedInfo,C extends Annotation>
info
- the inforetrieval
- the metadataannotation
- the annotationbeanMetaData
- the bean metadata
Throwable
- for any errorprotected abstract org.jboss.metadata.spi.signature.Signature createParametersSignature(String name, String[] parameters, int index)
name
- the nameparameters
- the parametersindex
- the index
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |