

Public Member Functions | |
| ACSJMSValueProvider (ACSJMSMessage jmsMessage) | |
| Object | getValue (Object identifier, Object correlation) |
Package Attributes | |
| ACSJMSMessage | message |
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.
| com::cosylab::acs::jms::ACSJMSMessageSelector::ACSJMSValueProvider::ACSJMSValueProvider | ( | ACSJMSMessage | jmsMessage | ) | [inline] |
Constructor
| jmsMessage | The message whose values are neeed by the parser |
References message.
| 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)
| identifier | The identifier of the property (the key, it is a String) | |
| correlation | The correlation object (not used) |
References com::cosylab::acs::jms::ACSJMSMessage::entity, and message.
The message whose values are neeed by the parser
Referenced by ACSJMSValueProvider(), and getValue().
1.6.2