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
파일 보기 프로젝트 열기: ThorTech/apache-nms

공개 메소드들

메소드 설명
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