-
Mar 13th, 2012, 10:23 AM
#1
factory-method fails ??
Greetings,
Although I read http://static.springsource.org/sprin...tory-lifecycle
I fail to understand why this fails :
<bean id="foo" factory-bean="exe" factory-method="newCachedThreadPool"/>
<bean id="exe" class="java.util.concurrent.Executors"/>
I thought that Executors.newCachedThreadPool would return me a ThreadPoolExecutor that could be referenced as foo.
But STS tells me Non-static factory method 'newCachedThreadPool' not found in factory bean class.
I Use JSE 6 and knows there is s the mistake is elsewhere.
Can someone please explain to me what's wrong ?
thanks !
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules