title: Constructor injection with JBoss Seam
body: <p>I'm new to JBoss Seam. <strong>I'd like to know how do I instantiate a class without a no-arg constructor in JBoss Seam.</strong></p>
  
  <p>I have to instantiate JsonPrimitive (from Google Gson framework) that has just constructors which receive arguments.</p>
  
  <p>How the regular code would be:</p>
  
  <pre><code>import com.google.gson.JsonPrimitive;
  ...
  JsonPrimitive jsonPrimitive = new JsonPrimitive(myobject.toString())
  </code></pre>
  
  <p>Trying to transport the code to Seam:</p>
  
  <pre><code>import com.google.gson.JsonPrimitive;
  ..
  @In(create=true)
  JsonPrimitive jsonPrimitive
  </code></pre>
  
  <p>But this kind of thing in Seam(shown above) will not help me. <strong>I have to pass an argument in the constructor to instantiate the class.</strong> </p>
  
  <p>How could I tell Seam to use an argument in the constructor when instantiating an object to be injected?</p>
  
  <p>Thanks!</p>