This content has been marked as final.
Show 4 replies
-
1. Re: No factoryClass does not use class attribute
adrian.brock Nov 24, 2008 10:23 AM (in response to alesj)"alesj" wrote:
Afaik we used to support this:
NOPE. You just imagined it. :-)
If there was no test for it in the testsuite, the feature didn't exist. -
2. Re: No factoryClass does not use class attribute
alesj Nov 24, 2008 4:11 PM (in response to alesj)"adrian@jboss.org" wrote:
NOPE. You just imagined it. :-)
Could be, looking at old ConstructorHandler and BeanConstructorInterceptor. :-)
But this feels like a natural way of introducing factory method,
as I know I went that path a couple of times.
Should I add this behavior?
Or at least throw an exception that something is missing,
either factory or factoryClass? -
3. Re: No factoryClass does not use class attribute
adrian.brock Nov 24, 2008 5:00 PM (in response to alesj)"alesj" wrote:
Should I add this behavior?
Or at least throw an exception that something is missing,
either factory or factoryClass?
You should do one or the other.
i.e. either support it or give a reasonable error message. -
4. Re: No factoryClass does not use class attribute
alesj Nov 24, 2008 6:08 PM (in response to alesj)"adrian@jboss.org" wrote:
You should do one or the other.
i.e. either support it or give a reasonable error message.
I'll use the bean's class as default.