[weld-commits] Weld SVN: r4671 - doc/trunk/reference/en-US.
weld-commits at lists.jboss.org
weld-commits at lists.jboss.org
Wed Nov 4 14:11:00 EST 2009
Author: dan.j.allen
Date: 2009-11-04 14:10:59 -0500 (Wed, 04 Nov 2009)
New Revision: 4671
Modified:
doc/trunk/reference/en-US/injection.xml
Log:
document workarounds for non-proxyable beans
Modified: doc/trunk/reference/en-US/injection.xml
===================================================================
--- doc/trunk/reference/en-US/injection.xml 2009-11-04 19:08:13 UTC (rev 4670)
+++ doc/trunk/reference/en-US/injection.xml 2009-11-04 19:10:59 UTC (rev 4671)
@@ -464,10 +464,22 @@
</itemizedlist>
<para>
- It's usually very easy to fix an <literal>UnproxyableDependencyException</literal>. Simply add a constructor
+ It's usually very easy to fix an <literal>UnproxyableDependencyException</literal>. Simply add a constructor
with no parameters to the injected class, introduce an interface, or, if all else fails, change the scope of
- the injected bean to <literal>@Dependent</literal>.
+ the injected bean to <literal>@Dependent</literal>. Weld will probably support non-standard ways of getting
+ around this depending on what is available on the classpath:
</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>
+ Sun, IcedTea, Mac: <literal>Unsafe.allocateInstance()</literal> (The most efficient)
+ </para>
+ <para>
+ Above + IBM, JRockit: <literal>ReflectionFactory.newConstructorForSerialization()</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
</section>
More information about the weld-commits
mailing list