tag:robotlegs.tenderapp.com,2009-10-18:/discussions/questions/574-how-to-pass-values-to-a-constructor-that-robotlegs-intantiatesRobotlegs: Discussion 2013-04-28T10:20:48Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/76331122011-06-03T15:49:57Z2011-06-03T15:49:57ZHow to pass values to a constructor that robotlegs intantiates<div><p>Two strings is going to be really tough (well, nigh impossible)
to pass in<br>
through the constructor. You <em>CAN</em> pass in constructor
arguments, but the<br>
arguments need to be managed injectable objects. My suggestion
would be to<br>
create a VO/Model that has the string values as properties.
Configure that<br>
object with your string values and add its type as a parameter in
the<br>
constructor of your service.</p></div>Joel Hooks