|
From: <jue...@we...> - 2004-04-04 16:35:34
|
On the occasion: Shouldn't ProxyFactoryBean's "newPrototypeInstance" = method be synchronized? It refreshes advisor chain and target which are = kept in ProxyFactoryBean's instance variables: If multiple prototypes = are created in parallel, this needs to be synchronized because each = prototype proxy might have its own prototype interceptors and/or target. =20 Juergen =20 ________________________________ Von: SourceForge.net [mailto:no...@so...] Gesendet: So 04.04.2004 18:21 An: no...@so... Betreff: [springframework - Help] RE: Transactional Prototypes... Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=3D2506862 By: jhoeller So what you want to achieve is to have prototype proxies, each = associated with a prototype target - but each proxy with a fixed target? I'm afraid = you'll have to resort to the generic ProxyFactoryBean for this, turning its = "singleton" flag to false and putting the name of your prototype target at the end = of the "interceptorNames" list: <bean id=3D"exampleBusinessObject" class=3D"org.springframework.aop.framework.ProxyFactoryBean"> <property name=3D"singleton"><value>false</value></property> </bean> <property = name=3D"proxyInterfaces"><value>example.ExampleBusinessInterface</value> </property> <property = name=3D"interceptorNames"><value>exampleTransactionInterceptor,exampleBu sinessObjectTarget</value></property> Juergen ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=3D250340 |