com.baidu.jprotobuf.pbrpc.spring.annotation
接口 AnnotationParserCallback

所有已知实现类:
AbstractAnnotationParserCallback, ProtobufRpcAnnotationResolver

public interface AnnotationParserCallback

Annotation parser call back interface.

从以下版本开始:
2.17
作者:
xiemalin
另请参见:
CommonAnnotationBeanPostProcessor

方法摘要
 Object annotationAtField(Annotation t, Object value, String beanName, org.springframework.beans.PropertyValues pvs, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, Field field)
          process all annotation on class field.
 Object annotationAtMethod(Annotation t, Object bean, String beanName, org.springframework.beans.PropertyValues pvs, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, Method method)
          process all annotation on class method.
 Object annotationAtType(Annotation t, Object bean, String beanName, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
          process all annotation on class type.
 void annotationAtTypeAfterStarted(Annotation t, Object bean, String beanName, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
          process all annotation on class type after spring containter started
 void destroy()
          do destroy action on spring container close.
 List<Class<? extends Annotation>> getMethodFieldAnnotation()
          get annotation type on class field or method
 Class<? extends Annotation> getTypeAnnotation()
          get annotation type on class type
 void setPlaceholderResolver(PlaceholderResolver resolver)
          set PlaceholderResolver instance.
 

方法详细信息

annotationAtType

Object annotationAtType(Annotation t,
                        Object bean,
                        String beanName,
                        org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
                        throws org.springframework.beans.BeansException
process all annotation on class type.

参数:
t - annotation instance.
bean - target bean
beanName - target bean name
beanFactory - spring bean factory
返回:
wrapped bean
抛出:
org.springframework.beans.BeansException - exceptions on spring beans create error.

annotationAtTypeAfterStarted

void annotationAtTypeAfterStarted(Annotation t,
                                  Object bean,
                                  String beanName,
                                  org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
                                  throws org.springframework.beans.BeansException
process all annotation on class type after spring containter started

参数:
t - annotation instance.
bean - target bean
beanName - target bean name
beanFactory - spring bean factory
抛出:
org.springframework.beans.BeansException - exceptions on spring beans create error.

annotationAtField

Object annotationAtField(Annotation t,
                         Object value,
                         String beanName,
                         org.springframework.beans.PropertyValues pvs,
                         org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
                         Field field)
                         throws org.springframework.beans.BeansException
process all annotation on class field.

参数:
t - annotation instance.
value - field value of target target
beanName - target bean name
pvs - bean property values
beanFactory - spring bean factory
field - field instance
返回:
field value
抛出:
org.springframework.beans.BeansException - exceptions on spring beans create error.

annotationAtMethod

Object annotationAtMethod(Annotation t,
                          Object bean,
                          String beanName,
                          org.springframework.beans.PropertyValues pvs,
                          org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
                          Method method)
                          throws org.springframework.beans.BeansException
process all annotation on class method.

参数:
t - annotation instance.
bean - target bean
beanName - target bean name
pvs - bean property values
beanFactory - spring bean factory
method - method instance
返回:
method invoke parameter
抛出:
org.springframework.beans.BeansException - exceptions on spring beans create error.

getTypeAnnotation

Class<? extends Annotation> getTypeAnnotation()
get annotation type on class type

返回:
annotation type on class type

getMethodFieldAnnotation

List<Class<? extends Annotation>> getMethodFieldAnnotation()
get annotation type on class field or method

返回:
annotation type on class field or method

destroy

void destroy()
             throws Exception
do destroy action on spring container close.

抛出:
Exception - throw any exception

setPlaceholderResolver

void setPlaceholderResolver(PlaceholderResolver resolver)
set PlaceholderResolver instance.

参数:
resolver - PlaceholderResolver instance.


Copyright © 2015 Baidu, Inc.. All Rights Reserved.