<div dir="ltr">Hi,<div><br></div><div>Today I realized about the method &#39;javax.enterprise.inject.Instance#select(javax.enterprise.util.TypeLiteral, java.lang.annotation.Annotation...)&#39; [1], which whas there from 1.0 version.</div>

<div>After watching CDI &#39;TypeLiteral&#39; implementation, came a question to mind to me:</div><div><br></div><div>  Could be done the same, but *with dynamic class type building*?<br><br></div><div>And my first google search bring me to a post where a user told some of the benefits of Guice [2] injection and dynamic types [3], which was written at 2010, and it covers exactly my actual needs.</div>

<div>After watching more the &#39;TypeLiteral&#39; from CDI and how it is done with Guice, I thought that could be cool to have this feature in CDI too. I know I can do it for my own project (and I will) but I have a few questions:</div>

<div><br></div><div>  * Should I open an issue at CDI Jira? Or is more a Weld issue?</div><div>  * If the issue is open, I&#39;d like to contribute to its development. A part of the &quot;easy rules&quot; from <a href="http://www.cdi-spec.org/contribute/">http://www.cdi-spec.org/contribute/</a>, what more should I do?</div>

<div><br></div><div>Thanks!!</div><div><br></div><div>  [1]: <a href="http://docs.jboss.org/cdi/api/1.0-SP4/javax/enterprise/inject/Instance.html#select(javax.enterprise.util.TypeLiteral">http://docs.jboss.org/cdi/api/1.0-SP4/javax/enterprise/inject/Instance.html#select(javax.enterprise.util.TypeLiteral</a>, java.lang.annotation.Annotation...)</div>

<div>  [2]: <a href="https://github.com/google/guice">https://github.com/google/guice</a></div><div>  [3]: <a href="http://luisfsgoncalves.wordpress.com/2010/09/08/generic-bindings-with-guice/">http://luisfsgoncalves.wordpress.com/2010/09/08/generic-bindings-with-guice/</a></div>

<div><br clear="all"><div>--<br>Lucas<br><br></div>
</div></div>