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

所有已知实现类:
AbstractAnnotationParserCallback, ProtobufRpcAnnotationResolver

public interface AnnotationParserCallback

Annotation parser call back interface.

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

方法摘要
 java.lang.Object annotationAtField(java.lang.annotation.Annotation t, java.lang.Object value, java.lang.String beanName, org.springframework.beans.PropertyValues pvs, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, java.lang.reflect.Field field)
          process all annotation on class field.
 java.lang.Object annotationAtMethod(java.lang.annotation.Annotation t, java.lang.Object bean, java.lang.String beanName, org.springframework.beans.PropertyValues pvs, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, java.lang.reflect.Method method)
          process all annotation on class method.
 java.lang.Object annotationAtType(java.lang.annotation.Annotation t, java.lang.Object bean, java.lang.String beanName, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
          process all annotation on class type.
 void annotationAtTypeAfterStarted(java.lang.annotation.Annotation t, java.lang.Object bean, java.lang.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.
 java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> getMethodFieldAnnotation()
          get annotation type on class field or method
 java.lang.Class<? extends java.lang.annotation.Annotation> getTypeAnnotation()
          get annotation type on class type
 void setPlaceholderResolver(PlaceholderResolver resolver)
          set PlaceholderResolver instance.
 

方法详细信息

annotationAtType

java.lang.Object annotationAtType(java.lang.annotation.Annotation t,
                                  java.lang.Object bean,
                                  java.lang.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(java.lang.annotation.Annotation t,
                                  java.lang.Object bean,
                                  java.lang.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

java.lang.Object annotationAtField(java.lang.annotation.Annotation t,
                                   java.lang.Object value,
                                   java.lang.String beanName,
                                   org.springframework.beans.PropertyValues pvs,
                                   org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
                                   java.lang.reflect.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

java.lang.Object annotationAtMethod(java.lang.annotation.Annotation t,
                                    java.lang.Object bean,
                                    java.lang.String beanName,
                                    org.springframework.beans.PropertyValues pvs,
                                    org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
                                    java.lang.reflect.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

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

返回:
annotation type on class type

getMethodFieldAnnotation

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

返回:
annotation type on class field or method

destroy

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

抛出:
java.lang.Exception - throw any exception

setPlaceholderResolver

void setPlaceholderResolver(PlaceholderResolver resolver)
set PlaceholderResolver instance.

参数:
resolver - PlaceholderResolver instance.


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