<div>
<span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; ">Hi, </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; "><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; ">My Java EE app acts as a server to clients. When a client makes a certain request to the server, I want to make a Configuration object. This Configuration object should Inject 3 objects, based on XML data I received from the client. Additionally, I'm keeping Configuration objects in a HashMap. </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; "><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; ">The problem is, CDI only wants to do Injection in a Managed Bean, a.k.a. I would have to Inject this Configuration object and not create it through 'new Configuration()'. </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; "><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; ">How then, can I create a Configuration object whenever a client makes the certain request? </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; ">How then, can I pass the information in the XML my client sent me, to the Configuration object? </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; "><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; "><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; ">I have posted this question, phrased differently, including simplified code to Stack Overflow as well: </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; "><a href="http://stackoverflow.com/questions/16114343/pass-runtime-arguments-to-object-containing-injections" target="_top" rel="nofollow" link="external" style="color: rgb(85, 26, 139); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; ">http://stackoverflow.com/questions/16114343/pass-runtime-arguments-to-object-containing-injections</a><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; "><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; "><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; ">Kind regards, </span><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; "><br style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; "><span style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; ">Caroline </span>
</div>
<div></div>