web stats
How are channel properties loaded? - Mirth Community

Go Back   Mirth Community > Mirth Connect > Development

Reply
 
Thread Tools Display Modes
  #1  
Old 07-19-2012, 08:00 AM
gsnyder gsnyder is offline
Mirth Newb
 
Join Date: Jun 2011
Posts: 6
gsnyder is on a distinguished road
Default How are channel properties loaded?

Hello - I am working on adding a new feature to the existing MLLP Connector in Mirth. I haven't been able to find any documentation on this so I am just trying to figure out how everything works. So far I have:

Updated com.mirth.connect.connectors.LLPListener
Added a radio button for my setting
Updated setProperties() to read the value of my setting and update the UI
Updated getProperties() to add my setting to the properties object

Updated com.mirth.connect.connectors.mllp.LLPListenerPrope rties
Added a default value for my setting to getDefaults()

Updated com.mirth.connect.connectors.mllp.MllpConnector
Added a getter and setter for my new property

Updated com.mirth.connect.connectors.mllp.MllpMessageRecei ver
Modified behavior based on getter added to MllpConnector



Now, what I can't figure out is the last piece of this. On the client side, I am assuming that when I save the channel, com.mirth.connect.connectors.LLPListener.getProper ties() is called and the Properties object is saved off. What I need to find is the piece of code on the server side which reads the connector Properties object and calls the appropriate setters in com.mirth.connect.connectors.mllp.MllpConnector. Any hints are greatly appreciated!
Reply With Quote
  #2  
Old 07-19-2012, 10:44 AM
jacobb jacobb is offline
Mirth Employee
 
Join Date: Aug 2006
Location: Irvine, CA
Posts: 1,218
jacobb is an unknown quantity at this point
Default

Reflection is used to go from the name of the item in the Properties map to the MllpConnector object. As long as the property key has the same name, it should be populated.
__________________
Jacob Brauer
Director, Software Development
NextGen Healthcare

Reply With Quote
  #3  
Old 07-19-2012, 10:47 AM
gsnyder gsnyder is offline
Mirth Newb
 
Join Date: Jun 2011
Posts: 6
gsnyder is on a distinguished road
Default

That worked, thanks for the pointer!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 01:23 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation