Results 1 to 2 of 2

Thread: Creating proxied bean programmatically

  1. #1

    Default 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. #2
    Join Date
    May 2007
    Location
    Saint Petersburg, Russian Federation
    Posts
    1,189

    Default

    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
  •