We should also improve the documentation. Right now, there is only one note in "4.9. Client proxies" which indicates that "unsafe" works around all limitations. We should explicitly state that it only works for "classes which don’t have a non-private constructor with no parameters". And of course, the constructor with params must be annotated with @Inject, otherwise the class is not a bean.
|