Table of Contents

Class AbstractMethodAttributeProcessor<A>

Namespace
Steeltoe.Integration.Config
Assembly
Steeltoe.Integration.IntegrationBase.dll
public abstract class AbstractMethodAttributeProcessor<A> : IMethodAttributeProcessor<A> where A : Attribute

Type Parameters

A
Inheritance
AbstractMethodAttributeProcessor<A>
Implements
Derived
Inherited Members

Constructors

AbstractMethodAttributeProcessor(IApplicationContext, ILogger)

protected AbstractMethodAttributeProcessor(IApplicationContext applicatonContext, ILogger logger)

Parameters

applicatonContext IApplicationContext
logger ILogger

Fields

INPUT_CHANNEL_PROPERTY

protected const string INPUT_CHANNEL_PROPERTY = "InputChannel"

Field Value

string

SEND_TIMEOUT_PROPERTY

protected const string SEND_TIMEOUT_PROPERTY = "SendTimeout"

Field Value

string

Properties

AnnotationType

protected virtual Type AnnotationType { get; }

Property Value

Type

ApplicationContext

protected IApplicationContext ApplicationContext { get; }

Property Value

IApplicationContext

ChannelResolver

protected virtual IDestinationResolver<IMessageChannel> ChannelResolver { get; }

Property Value

IDestinationResolver<IMessageChannel>

ConversionService

protected virtual IConversionService ConversionService { get; }

Property Value

IConversionService

InputChannelProperty

protected virtual string InputChannelProperty { get; }

Property Value

string

MessageHandlerProperties

protected virtual List<string> MessageHandlerProperties { get; }

Property Value

List<string>

Methods

CheckMessageHandlerAttributes(string, List<Attribute>)

protected void CheckMessageHandlerAttributes(string handlerServiceName, List<Attribute> annotations)

Parameters

handlerServiceName string
annotations List<Attribute>

CreateEndpoint(IMessageHandler, MethodInfo, List<Attribute>)

protected virtual AbstractEndpoint CreateEndpoint(IMessageHandler handler, MethodInfo method, List<Attribute> annotations)

Parameters

handler IMessageHandler
method MethodInfo
annotations List<Attribute>

Returns

AbstractEndpoint

CreateHandler(object, MethodInfo, List<Attribute>)

protected abstract IMessageHandler CreateHandler(object service, MethodInfo method, List<Attribute> attributes)

Parameters

service object
method MethodInfo
attributes List<Attribute>

Returns

IMessageHandler

DoCreateEndpoint(IMessageHandler, IMessageChannel, List<Attribute>)

protected virtual AbstractEndpoint DoCreateEndpoint(IMessageHandler handler, IMessageChannel inputChannel, List<Attribute> annotations)

Parameters

handler IMessageHandler
inputChannel IMessageChannel
annotations List<Attribute>

Returns

AbstractEndpoint

ExtractTypeIfPossible<H>(object)

protected virtual H ExtractTypeIfPossible<H>(object targetObject)

Parameters

targetObject object

Returns

H

Type Parameters

H

GenerateHandlerServiceName(string, MethodInfo)

protected virtual string GenerateHandlerServiceName(string originalServiceName, MethodInfo method)

Parameters

originalServiceName string
method MethodInfo

Returns

string

PostProcess(object, string, MethodInfo, List<Attribute>)

public object PostProcess(object service, string serviceName, MethodInfo method, List<Attribute> attributes)

Parameters

service object
serviceName string
method MethodInfo
attributes List<Attribute>

Returns

object

ResolveTargetServiceFromMethodWithServiceAnnotation(MethodInfo)

protected virtual object ResolveTargetServiceFromMethodWithServiceAnnotation(MethodInfo method)

Parameters

method MethodInfo

Returns

object

ResolveTargetServiceName(MethodInfo)

protected virtual string ResolveTargetServiceName(MethodInfo method)

Parameters

method MethodInfo

Returns

string

ServiceAnnotationAware()

protected virtual bool ServiceAnnotationAware()

Returns

bool

SetOutputChannelIfPresent(List<Attribute>, AbstractReplyProducingMessageHandler)

protected virtual void SetOutputChannelIfPresent(List<Attribute> annotations, AbstractReplyProducingMessageHandler handler)

Parameters

annotations List<Attribute>
handler AbstractReplyProducingMessageHandler

ShouldCreateEndpoint(MethodInfo, List<Attribute>)

public virtual bool ShouldCreateEndpoint(MethodInfo method, List<Attribute> attributes)

Parameters

method MethodInfo
attributes List<Attribute>

Returns

bool