Class DefaultMessageHandlerMethodFactory
- Namespace
- Steeltoe.Messaging.Handler.Attributes.Support
- Assembly
- Steeltoe.Messaging.MessagingBase.dll
[Obsolete("This feature will be removed in the next major version. See https://steeltoe.io/docs/v3/obsolete for details.")]
public class DefaultMessageHandlerMethodFactory : IMessageHandlerMethodFactory, IServiceNameAware
- Inheritance
-
DefaultMessageHandlerMethodFactory
- Implements
- Derived
- Inherited Members
Constructors
DefaultMessageHandlerMethodFactory(IApplicationContext)
public DefaultMessageHandlerMethodFactory(IApplicationContext context = null)
Parameters
contextIApplicationContext
DefaultMessageHandlerMethodFactory(IConversionService, IApplicationContext)
public DefaultMessageHandlerMethodFactory(IConversionService conversionService, IApplicationContext context = null)
Parameters
conversionServiceIConversionServicecontextIApplicationContext
DefaultMessageHandlerMethodFactory(IConversionService, IMessageConverter, IApplicationContext)
public DefaultMessageHandlerMethodFactory(IConversionService conversionService, IMessageConverter converter, IApplicationContext context = null)
Parameters
conversionServiceIConversionServiceconverterIMessageConvertercontextIApplicationContext
DefaultMessageHandlerMethodFactory(IConversionService, IMessageConverter, List<IHandlerMethodArgumentResolver>, IApplicationContext)
public DefaultMessageHandlerMethodFactory(IConversionService conversionService, IMessageConverter converter, List<IHandlerMethodArgumentResolver> resolvers, IApplicationContext context = null)
Parameters
conversionServiceIConversionServiceconverterIMessageConverterresolversList<IHandlerMethodArgumentResolver>contextIApplicationContext
Fields
DEFAULT_SERVICE_NAME
public const string DEFAULT_SERVICE_NAME = "DefaultMessageHandlerMethodFactory"
Field Value
_argumentResolvers
protected readonly HandlerMethodArgumentResolverComposite _argumentResolvers
Field Value
Properties
ApplicationContext
public virtual IApplicationContext ApplicationContext { get; set; }
Property Value
ConversionService
public virtual IConversionService ConversionService { get; set; }
Property Value
CustomArgumentResolvers
public virtual List<IHandlerMethodArgumentResolver> CustomArgumentResolvers { get; set; }
Property Value
MessageConverter
public virtual IMessageConverter MessageConverter { get; set; }
Property Value
ServiceName
public virtual string ServiceName { get; set; }
Property Value
Methods
CreateInvocableHandlerMethod(object, MethodInfo)
Create the invokable handler method that can process the specified method endpoint.
public virtual IInvocableHandlerMethod CreateInvocableHandlerMethod(object bean, MethodInfo method)
Parameters
beanobjectmethodMethodInfothe method to invoke
Returns
- IInvocableHandlerMethod
a suitable invokable handler for the method
InitArgumentResolvers()
protected List<IHandlerMethodArgumentResolver> InitArgumentResolvers()
Returns
Initialize()
public virtual void Initialize()
SetArgumentResolvers(List<IHandlerMethodArgumentResolver>)
public virtual void SetArgumentResolvers(List<IHandlerMethodArgumentResolver> argumentResolvers)
Parameters
argumentResolversList<IHandlerMethodArgumentResolver>