Class RabbitListenerAttributeProcessor
public class RabbitListenerAttributeProcessor : IRabbitListenerAttributeProcessor, IServiceNameAware, IOrdered
- Inheritance
-
RabbitListenerAttributeProcessor
- Implements
- Inherited Members
Constructors
RabbitListenerAttributeProcessor(IApplicationContext, IRabbitListenerEndpointRegistry, IRabbitListenerEndpointRegistrar, IMessageHandlerMethodFactory, IEnumerable<RabbitListenerMetadata>, ILoggerFactory)
public RabbitListenerAttributeProcessor(IApplicationContext applicationContext, IRabbitListenerEndpointRegistry endpointRegistry, IRabbitListenerEndpointRegistrar registrar, IMessageHandlerMethodFactory messageHandlerMethodFactory, IEnumerable<RabbitListenerMetadata> rabbitListeners, ILoggerFactory loggerFactory = null)
Parameters
applicationContext
IApplicationContextendpointRegistry
IRabbitListenerEndpointRegistryregistrar
IRabbitListenerEndpointRegistrarmessageHandlerMethodFactory
IMessageHandlerMethodFactoryrabbitListeners
IEnumerable<RabbitListenerMetadata>loggerFactory
ILoggerFactory
Fields
DEFAULT_SERVICE_NAME
public const string DEFAULT_SERVICE_NAME = "RabbitListenerAttributeProcessor"
Field Value
Properties
ApplicationContext
public IApplicationContext ApplicationContext { get; set; }
Property Value
Charset
public Encoding Charset { get; set; }
Property Value
ContainerFactoryServiceName
public string ContainerFactoryServiceName { get; set; }
Property Value
EndpointRegistry
public IRabbitListenerEndpointRegistry EndpointRegistry { get; }
Property Value
ExpressionContext
public IServiceExpressionContext ExpressionContext { get; set; }
Property Value
Order
Gets the order of this object
public int Order { get; }
Property Value
Registrar
public IRabbitListenerEndpointRegistrar Registrar { get; }
Property Value
Resolver
public IServiceExpressionResolver Resolver { get; set; }
Property Value
ServiceName
public string ServiceName { get; set; }
Property Value
ServiceResolver
public IServiceResolver ServiceResolver { get; set; }
Property Value
Methods
Initialize()
public void Initialize()
ProcessListener(MethodRabbitListenerEndpoint, RabbitListenerAttribute, object, object, string)
protected void ProcessListener(MethodRabbitListenerEndpoint endpoint, RabbitListenerAttribute rabbitListener, object bean, object target, string beanName)
Parameters
endpoint
MethodRabbitListenerEndpointrabbitListener
RabbitListenerAttributebean
objecttarget
objectbeanName
string
ProcessMultiMethodListeners(List<RabbitListenerAttribute>, List<MethodInfo>, object, string)
protected void ProcessMultiMethodListeners(List<RabbitListenerAttribute> classLevelListeners, List<MethodInfo> multiMethods, object bean, string beanName)
Parameters
classLevelListeners
List<RabbitListenerAttribute>multiMethods
List<MethodInfo>bean
objectbeanName
string