C# Class 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.
Inheritance: PrimitiveMapInterceptor
Afficher le fichier Open project: ThorTech/apache-nms

Méthodes publiques

Méthode Description
MessagePropertyIntercepter ( IMessage message, IPrimitiveMap properties ) : System
MessagePropertyIntercepter ( IMessage message, IPrimitiveMap properties, bool readOnly ) : System

Méthodes protégées

Méthode Description
GetObjectProperty ( string name ) : object
SetObjectProperty ( string name, object value ) : void

Method Details

GetObjectProperty() protected méthode

protected GetObjectProperty ( string name ) : object
name string
Résultat object

MessagePropertyIntercepter() public méthode

public MessagePropertyIntercepter ( IMessage message, IPrimitiveMap properties ) : System
message IMessage
properties IPrimitiveMap
Résultat System

MessagePropertyIntercepter() public méthode

public MessagePropertyIntercepter ( IMessage message, IPrimitiveMap properties, bool readOnly ) : System
message IMessage
properties IPrimitiveMap
readOnly bool
Résultat System

SetObjectProperty() protected méthode

protected SetObjectProperty ( string name, object value ) : void
name string
value object
Résultat void