Results 1 to 3 of 3

Thread: Shorthand for Proxy with LazyInitTargetSource?

  1. #1

    Default Shorthand for Proxy with LazyInitTargetSource?

    The following snippet appears to come up often -- I was wondering if there is a more compact representation that makes use of the aop (or another) namespace?

    Code:
    <bean id="foo" class="...">
      ...
    </bean>
    
    <bean id="fooProxy" class="org.springframework.aop.framework.ProxyFactoryBean">
      <property name="targetSource">
        <bean class="org.springframework.aop.target.LazyInitTargetSource">
            <property name="targetBeanName">
              <idref local="foo"/>
            </property>
        </bean>
      </property>
    </bean>

  2. #2
    Join Date
    Nov 2007
    Posts
    25

    Default

    I aggree. This would be a welcomed addition. Also, it would be nice if this could work with @Configurable.

  3. #3
    Join Date
    Nov 2007
    Posts
    25

    Default

    One thing you might want to try is the example at the following link:

    http://static.springsource.org/sprin...ceCreator.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •