public class ProtobufRpcAnnotationResolver extends AbstractAnnotationParserCallback implements org.springframework.beans.factory.InitializingBean
RpcProxy and RpcExporter.| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.slf4j.Logger |
LOGGER
log this class.
|
| 构造器和说明 |
|---|
ProtobufRpcAnnotationResolver() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
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.
|
protected RpcProxyFactoryBean |
createRpcProxyFactoryBean(RpcProxy rpcProxy,
org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
RpcClientOptions rpcClientOptions,
int intPort,
String host)
Creates the rpc proxy factory bean.
|
void |
destroy()
do destroy action on spring container close.
|
List<Class<? extends Annotation>> |
getMethodFieldAnnotation()
Gets the method field annotation.
|
Class<? extends Annotation> |
getTypeAnnotation()
Gets the type annotation.
|
void |
setClientInterceptor(InvokerInterceptor clientInterceptor)
Sets the client interceptor.
|
void |
setCompiler(com.baidu.bjf.remoting.protobuf.utils.compiler.Compiler compiler)
Sets the compiler.
|
void |
setFailOverInterceptor(SocketFailOverInterceptor failOverInterceptor)
Sets the fail over interceptor.
|
void |
setNamingServiceLoadBalanceStrategyFactory(NamingServiceLoadBalanceStrategyFactory namingServiceLoadBalanceStrategyFactory)
Sets the naming service load balance strategy factory.
|
void |
setProtobufRpcAnnotationRessolverListener(ProtobufRpcAnnotationRessolverListener protobufRpcAnnotationRessolverListener)
Sets the protobuf rpc annotation ressolver listener.
|
void |
setRegistryCenterService(RegistryCenterService registryCenterService)
Sets the registry center service.
|
void |
setServerInterceptor(InvokerInterceptor serverInterceptor)
Sets the server interceptor.
|
hasPlaceholder, parsePlaceholder, setPlaceholderResolverpublic void setProtobufRpcAnnotationRessolverListener(ProtobufRpcAnnotationRessolverListener protobufRpcAnnotationRessolverListener)
protobufRpcAnnotationRessolverListener - the new protobuf rpc annotation ressolver listenerpublic void setClientInterceptor(InvokerInterceptor clientInterceptor)
clientInterceptor - the new client interceptorpublic void setServerInterceptor(InvokerInterceptor serverInterceptor)
serverInterceptor - the new server interceptorpublic void setNamingServiceLoadBalanceStrategyFactory(NamingServiceLoadBalanceStrategyFactory namingServiceLoadBalanceStrategyFactory)
namingServiceLoadBalanceStrategyFactory - the new naming service load balance strategy factorypublic void setFailOverInterceptor(SocketFailOverInterceptor failOverInterceptor)
failOverInterceptor - the new fail over interceptorpublic void setRegistryCenterService(RegistryCenterService registryCenterService)
registryCenterService - the new registry center servicepublic Object annotationAtType(Annotation t, Object bean, String beanName, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) throws org.springframework.beans.BeansException
AnnotationParserCallbackannotationAtType 在接口中 AnnotationParserCallbackt - annotation instance.bean - target beanbeanName - target bean namebeanFactory - spring bean factoryorg.springframework.beans.BeansException - exceptions on spring beans create error.public void annotationAtTypeAfterStarted(Annotation t, Object bean, String beanName, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) throws org.springframework.beans.BeansException
AnnotationParserCallbackannotationAtTypeAfterStarted 在接口中 AnnotationParserCallbackt - annotation instance.bean - target beanbeanName - target bean namebeanFactory - spring bean factoryorg.springframework.beans.BeansException - exceptions on spring beans create error.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
AnnotationParserCallbackannotationAtField 在接口中 AnnotationParserCallbackt - annotation instance.value - field value of target targetbeanName - target bean namepvs - bean property valuesbeanFactory - spring bean factoryfield - field instanceorg.springframework.beans.BeansException - exceptions on spring beans create error.protected RpcProxyFactoryBean createRpcProxyFactoryBean(RpcProxy rpcProxy, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, RpcClientOptions rpcClientOptions, int intPort, String host)
rpcProxy - the rpc proxybeanFactory - the bean factoryrpcClientOptions - the rpc client optionsintPort - the int porthost - the hostpublic 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
AnnotationParserCallbackannotationAtMethod 在接口中 AnnotationParserCallbackt - annotation instance.bean - target beanbeanName - target bean namepvs - bean property valuesbeanFactory - spring bean factorymethod - method instanceorg.springframework.beans.BeansException - exceptions on spring beans create error.public Class<? extends Annotation> getTypeAnnotation()
AnnotationParserCallbackgetTypeAnnotation 在接口中 AnnotationParserCallbackpublic List<Class<? extends Annotation>> getMethodFieldAnnotation()
AnnotationParserCallbackgetMethodFieldAnnotation 在接口中 AnnotationParserCallbackpublic void destroy()
throws Exception
AnnotationParserCallbackdestroy 在接口中 AnnotationParserCallbackException - throw any exceptionpublic void setCompiler(com.baidu.bjf.remoting.protobuf.utils.compiler.Compiler compiler)
compiler - the new compilerCopyright © 2022 Baidu, Inc.. All rights reserved.