Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

com::cosylab::acs::jms::ACSJMSMessageSelector::ACSJMSValueProvider Class Reference

Collaboration diagram for com::cosylab::acs::jms::ACSJMSMessageSelector::ACSJMSValueProvider:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ACSJMSValueProvider (ACSJMSMessage jmsMessage)
Object getValue (Object identifier, Object correlation)

Package Attributes

ACSJMSMessage message

Detailed Description

The parser makes callbacks to the getValue method of this object whenever needs a value. I need to customize the value provider becase we need to check the content of the message. The package provides a ValueProvider for JMS messages that allows to use the dot notation to access the field of the message but I prefer this iplementation.

Author:
acaproni


Constructor & Destructor Documentation

com::cosylab::acs::jms::ACSJMSMessageSelector::ACSJMSValueProvider::ACSJMSValueProvider ACSJMSMessage  jmsMessage  )  [inline]
 

Constructor

Parameters:
jmsMessage The message whose values are neeed by the parser


Member Function Documentation

Object com::cosylab::acs::jms::ACSJMSMessageSelector::ACSJMSValueProvider::getValue Object  identifier,
Object  correlation
[inline]
 

Return the value of a property. It looks for the property in the body of the message, not in the header. JMS specification states that the properties to check should only be those of the header so we are not following the specs here (even if it is common use). It should be better at least to check ALSO in the header properties

NOTE: Properties are object of type org.jacorb.orb.Any containing a String. This method tries to parse the String in order to return an object of the right type (true and false for booleans)

Parameters:
identifier The identifier of the property (the key, it is a String)
correlation The correlation object (not used)
Returns:
The value of the property or null if the property was not found


Member Data Documentation

ACSJMSMessage com::cosylab::acs::jms::ACSJMSMessageSelector::ACSJMSValueProvider::message [package]
 

The message whose values are neeed by the parser


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:10:08 2009 for ACS Java API by doxygen 1.3.8