Announcement Announcement Module
Collapse
No announcement yet.
Creating proxied bean programmatically Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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.

    Comment

    Working...
    X