|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.kernel.plugins.annotations.CommonAnnotationAdapter<T,U>
T - exact annotation plugin typeU - exact handle typepublic abstract class CommonAnnotationAdapter<T extends MetaDataAnnotationPlugin<?,?>,U>
Common bean annotation handler.
| Field Summary | |
|---|---|
protected org.jboss.logging.Logger |
log
The log |
| Constructor Summary | |
|---|---|
CommonAnnotationAdapter()
|
|
| Method Summary | |
|---|---|
void |
addAnnotationPlugin(T plugin)
Add the annotation plugin. |
protected abstract void |
applyPlugin(T plugin,
org.jboss.reflect.spi.AnnotatedInfo info,
org.jboss.metadata.spi.MetaData retrieval,
U handle)
Apply plugin. |
protected abstract void |
cleanPlugin(T plugin,
org.jboss.reflect.spi.AnnotatedInfo info,
org.jboss.metadata.spi.MetaData retrieval,
U handle)
Clean plugin. |
protected abstract Object |
getName(U handle)
Get the name from handle. |
protected Iterable<T> |
getPlugins(ElementType type,
org.jboss.kernel.plugins.annotations.AnnotationPluginFilter filter,
Collection<Class<? extends Annotation>> annotationClasses)
Get plugins. |
protected org.jboss.reflect.spi.MethodInfo[] |
getStaticMethods(org.jboss.reflect.spi.ClassInfo classInfo)
Get the static methods of class info. |
protected void |
handleAnnotations(org.jboss.beans.info.spi.BeanInfo info,
org.jboss.metadata.spi.MetaData retrieval,
U handle,
boolean isApplyPhase)
Handle apply or cleanup of annotations. |
protected void |
handleMethod(org.jboss.metadata.spi.MetaData retrieval,
U handle,
boolean isApplyPhase,
boolean trace,
Set<org.jboss.reflect.spi.MethodInfo> visitedMethods,
org.jboss.beans.info.spi.PropertyInfo pi,
org.jboss.reflect.spi.MethodInfo method,
String type,
Collection<Class<? extends Annotation>> annotationClasses)
Handle setter or getter on property. |
void |
removeAnnotationPlugin(T plugin)
Remove the plugin. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.jboss.logging.Logger log
| Constructor Detail |
|---|
public CommonAnnotationAdapter()
| Method Detail |
|---|
public void addAnnotationPlugin(T plugin)
plugin - the annotation pluginpublic void removeAnnotationPlugin(T plugin)
plugin - the annotation plugin
protected abstract void applyPlugin(T plugin,
org.jboss.reflect.spi.AnnotatedInfo info,
org.jboss.metadata.spi.MetaData retrieval,
U handle)
throws Throwable
plugin - the plugininfo - the bean inforetrieval - the metadatahandle - the handle
Throwable - for any error
protected abstract void cleanPlugin(T plugin,
org.jboss.reflect.spi.AnnotatedInfo info,
org.jboss.metadata.spi.MetaData retrieval,
U handle)
throws Throwable
plugin - the plugininfo - the bean inforetrieval - the metadatahandle - the handle
Throwable - for any errorprotected abstract Object getName(U handle)
handle - the handle
protected Iterable<T> getPlugins(ElementType type,
org.jboss.kernel.plugins.annotations.AnnotationPluginFilter filter,
Collection<Class<? extends Annotation>> annotationClasses)
type - the element type to matchfilter - possible plugins filterannotationClasses - possible annotations
protected void handleAnnotations(org.jboss.beans.info.spi.BeanInfo info,
org.jboss.metadata.spi.MetaData retrieval,
U handle,
boolean isApplyPhase)
throws Throwable
info - the bean inforetrieval - the metadatahandle - the handle to use in a pluginisApplyPhase - is this apply phase
Throwable - for any error
protected void handleMethod(org.jboss.metadata.spi.MetaData retrieval,
U handle,
boolean isApplyPhase,
boolean trace,
Set<org.jboss.reflect.spi.MethodInfo> visitedMethods,
org.jboss.beans.info.spi.PropertyInfo pi,
org.jboss.reflect.spi.MethodInfo method,
String type,
Collection<Class<? extends Annotation>> annotationClasses)
throws Throwable
retrieval - the metadatahandle - the handleisApplyPhase - is apply phasetrace - is trace enabledvisitedMethods - visited methodspi - the property infomethod - the method infotype - method typeannotationClasses - the possible annotation classes
Throwable - for any errorprotected org.jboss.reflect.spi.MethodInfo[] getStaticMethods(org.jboss.reflect.spi.ClassInfo classInfo)
classInfo - the class info
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||