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, setSortOrder
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
在接口中 org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
在接口中 org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void setClassAnnotationTypes(java.lang.String[] classAnnotationTypes)
public void setMethodAnnotationTypes(java.lang.String[] methodAnnotationTypes)
public void init()
AnnotationFactory
init
在接口中 AnnotationFactory
public java.util.Set<ClassAnnotation> getAnnotationOfClass(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
AnnotationFactory
getAnnotationOfClass
在接口中 AnnotationFactory
public java.util.Set<MethodAnnotation> getAnnotationOfMethod(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
AnnotationFactory
getAnnotationOfMethod
在接口中 AnnotationFactory
public java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.util.Set<ClassAnnotation>> getAllAnnotationOfClass()
getAllAnnotationOfClass
在接口中 AnnotationFactory
public java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.util.Set<MethodAnnotation>> getAllAnnotationOfMethod()
AnnotationFactory
getAllAnnotationOfMethod
在接口中 AnnotationFactory
public void initialize()
SystemInitializer
initialize
在接口中 SystemInitializer
initialize
在类中 AbstractSystemInitializer
public int getSortOrder()
SortOrderable
getSortOrder
在接口中 SortOrderable
getSortOrder
在类中 AbstractSystemInitializer