public class AnnotationHandler extends AbstractSystemInitializer implements org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.ApplicationContextAware, AnnotationFactory, PublicResourceInitializer
| 构造器和说明 |
|---|
AnnotationHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.util.Set<ClassAnnotation>> |
getAllAnnotationOfClass() |
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.util.Set<MethodAnnotation>> |
getAllAnnotationOfMethod()
获取系统中所有注释了指定注释类型的parameter
|
java.util.Set<ClassAnnotation> |
getAnnotationOfClass(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
获取系统中所有注释了指定注释类型的class
|
java.util.Set<MethodAnnotation> |
getAnnotationOfMethod(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
获取系统中所有注释了指定注释类型的method
|
int |
getSortOrder()
接口实现类在根据Bean类型获取Bean列表时的排序号
|
void |
init()
初始化
|
void |
initialize()
初始化接口,将在系统启动时被调用
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setClassAnnotationTypes(java.lang.String[] classAnnotationTypes) |
void |
setMethodAnnotationTypes(java.lang.String[] methodAnnotationTypes) |
destroy, initializeAtLast, preparedData, setSortOrderpublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory 在接口中 org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext 在接口中 org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void setClassAnnotationTypes(java.lang.String[] classAnnotationTypes)
public void setMethodAnnotationTypes(java.lang.String[] methodAnnotationTypes)
public void init()
AnnotationFactoryinit 在接口中 AnnotationFactorypublic java.util.Set<ClassAnnotation> getAnnotationOfClass(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
AnnotationFactorygetAnnotationOfClass 在接口中 AnnotationFactorypublic java.util.Set<MethodAnnotation> getAnnotationOfMethod(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
AnnotationFactorygetAnnotationOfMethod 在接口中 AnnotationFactorypublic java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.util.Set<ClassAnnotation>> getAllAnnotationOfClass()
getAllAnnotationOfClass 在接口中 AnnotationFactorypublic java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.util.Set<MethodAnnotation>> getAllAnnotationOfMethod()
AnnotationFactorygetAllAnnotationOfMethod 在接口中 AnnotationFactorypublic void initialize()
SystemInitializerinitialize 在接口中 SystemInitializerinitialize 在类中 AbstractSystemInitializerpublic int getSortOrder()
SortOrderablegetSortOrder 在接口中 SortOrderablegetSortOrder 在类中 AbstractSystemInitializer