-
Oct 20th, 2008, 06:35 AM
#1
Creating proxied bean programmatically
Hi all,
in spring context i've:
<bean class="org.springframework.beans.factory.config.Cu stomScopeConfigurer">
<property name="scopes">
<map>
<entry key="thread" value="com.mypackage.MyScope"/>
</map>
</property>
</bean>
<bean id="myProxiedBean" class="com.mypackage.myclass" scope="thread">
<aop:scoped-proxy/>
</bean>
Can i create programmatically myProxiedBean???
Best regards
-
Oct 20th, 2008, 06:55 AM
#2
Why not? The only problem is to create the proxy for that bean that delegates actual communication to the underlying thread-local bean instance. You can check how Spring uses CGLIB for that.
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