com.baidu.jprotobuf.pbrpc.spring.annotation
类 ProtobufRpcAnnotationResolver

java.lang.Object
  继承者 com.baidu.jprotobuf.pbrpc.spring.annotation.AbstractAnnotationParserCallback
      继承者 com.baidu.jprotobuf.pbrpc.spring.annotation.ProtobufRpcAnnotationResolver
所有已实现的接口:
AnnotationParserCallback

public class ProtobufRpcAnnotationResolver
extends AbstractAnnotationParserCallback

Supports annotation resolver for RpcProxy and RpcExporter

从以下版本开始:
2.17
作者:
xiemalin

字段摘要
protected static org.apache.commons.logging.Log LOGGER
          log this class
 
构造方法摘要
ProtobufRpcAnnotationResolver()
           
 
方法摘要
 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 setRegistryCenterService(RegistryCenterService registryCenterService)
          set registryCenterService value to registryCenterService
 
从类 com.baidu.jprotobuf.pbrpc.spring.annotation.AbstractAnnotationParserCallback 继承的方法
hasPlaceholder, parsePlaceholder, setPlaceholderResolver
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

LOGGER

protected static final org.apache.commons.logging.Log LOGGER
log this class

构造方法详细信息

ProtobufRpcAnnotationResolver

public ProtobufRpcAnnotationResolver()
方法详细信息

setRegistryCenterService

public void setRegistryCenterService(RegistryCenterService registryCenterService)
set registryCenterService value to registryCenterService

参数:
registryCenterService - the registryCenterService to set

annotationAtType

public Object annotationAtType(Annotation t,
                               Object bean,
                               String beanName,
                               org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
                        throws org.springframework.beans.BeansException
从接口 AnnotationParserCallback 复制的描述
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

public void annotationAtTypeAfterStarted(Annotation t,
                                         Object bean,
                                         String beanName,
                                         org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
                                  throws org.springframework.beans.BeansException
从接口 AnnotationParserCallback 复制的描述
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

public 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
从接口 AnnotationParserCallback 复制的描述
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

public 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
从接口 AnnotationParserCallback 复制的描述
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

public Class<? extends Annotation> getTypeAnnotation()
从接口 AnnotationParserCallback 复制的描述
get annotation type on class type

返回:
annotation type on class type

getMethodFieldAnnotation

public List<Class<? extends Annotation>> getMethodFieldAnnotation()
从接口 AnnotationParserCallback 复制的描述
get annotation type on class field or method

返回:
annotation type on class field or method

destroy

public void destroy()
             throws Exception
从接口 AnnotationParserCallback 复制的描述
do destroy action on spring container close.

抛出:
Exception - throw any exception


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