C# Класс Apache.NMS.Util.MessagePropertyIntercepter

Utility class used to set NMS properties via introspection for IMessage derived instances. This class allows IMessage classes to define Message specific properties that can be accessed using the standard property get / set semantics. This is especially useful for NMSX type properties which can vary by provider and are obtianed via a call to IConnectionMetaData.NMSXPropertyNames. The client can set the properties on an IMessage instance without a direct cast to the providers specific Message types. Properties accessed in this way are treated as NMS Message headers which are never read-only therefore there is no exception thrown if the message itself is in the read-only property mode.
Наследование: PrimitiveMapInterceptor
Показать файл Открыть проект

Открытые методы

Метод Описание
MessagePropertyIntercepter ( IMessage message, IPrimitiveMap properties ) : System
MessagePropertyIntercepter ( IMessage message, IPrimitiveMap properties, bool readOnly ) : System

Защищенные методы

Метод Описание
GetObjectProperty ( string name ) : object
SetObjectProperty ( string name, object value ) : void

Описание методов

GetObjectProperty() защищенный Метод

protected GetObjectProperty ( string name ) : object
name string
Результат object

MessagePropertyIntercepter() публичный Метод

public MessagePropertyIntercepter ( IMessage message, IPrimitiveMap properties ) : System
message IMessage
properties IPrimitiveMap
Результат System

MessagePropertyIntercepter() публичный Метод

public MessagePropertyIntercepter ( IMessage message, IPrimitiveMap properties, bool readOnly ) : System
message IMessage
properties IPrimitiveMap
readOnly bool
Результат System

SetObjectProperty() защищенный Метод

protected SetObjectProperty ( string name, object value ) : void
name string
value object
Результат void