类 ComponentAnnotationHandler
- java.lang.Object
-
- xyz.xiezc.ioc.definition.AnnotationOrder
-
- xyz.xiezc.ioc.annotation.AnnotationHandler<Component>
-
- xyz.xiezc.ioc.annotation.handler.ComponentAnnotationHandler
-
- 所有已实现的接口:
Comparable<AnnotationOrder>
public class ComponentAnnotationHandler extends AnnotationHandler<Component>
-
-
构造器概要
构造器 构造器 说明 ComponentAnnotationHandler()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Class<Component>getAnnotationType()voidprocessClass(Component annotation, Class clazz, ApplicationContextUtil contextUtil)这个注解的左右就是把bean放入容器中voidprocessField(FieldDefinition fieldDefinition, Component annotation, BeanDefinition beanSignature, ApplicationContextUtil contextUtil)如果是字段注解,则会调用这个方法来处理voidprocessMethod(MethodDefinition methodDefinition, Component annotation, BeanDefinition beanSignature, ApplicationContextUtil contextUtil)处理Component 注解的方法-
从类继承的方法 xyz.xiezc.ioc.annotation.AnnotationHandler
dealBeanAnnotation, dealBeanAnnotation, getRealBeanClass
-
从类继承的方法 xyz.xiezc.ioc.definition.AnnotationOrder
compareTo
-
-
-
-
方法详细资料
-
getAnnotationType
public Class<Component> getAnnotationType()
- 指定者:
getAnnotationType在类中AnnotationHandler<Component>
-
processClass
public void processClass(Component annotation, Class clazz, ApplicationContextUtil contextUtil)
这个注解的左右就是把bean放入容器中- 指定者:
processClass在类中AnnotationHandler<Component>- 参数:
clazz- 被注解的类annotation- 注解contextUtil- 容器中已有的所有bean信息
-
processMethod
public void processMethod(MethodDefinition methodDefinition, Component annotation, BeanDefinition beanSignature, ApplicationContextUtil contextUtil)
处理Component 注解的方法- 指定者:
processMethod在类中AnnotationHandler<Component>- 参数:
methodDefinition- 被注解的方法annotation- 这个类上的所有注解beanSignature- 被注解的类contextUtil- 容器中已有的所有bean信息
-
processField
public void processField(FieldDefinition fieldDefinition, Component annotation, BeanDefinition beanSignature, ApplicationContextUtil contextUtil)
从类复制的说明:AnnotationHandler如果是字段注解,则会调用这个方法来处理- 指定者:
processField在类中AnnotationHandler<Component>- 参数:
fieldDefinition- 被注解的字段annotation- 这个类上的所有注解beanSignature- 被注解的类contextUtil- 容器中已有的所有bean信息
-
-