Announcement Announcement Module
Collapse
No announcement yet.
Shorthand for Proxy with LazyInitTargetSource? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    I aggree. This would be a welcomed addition. Also, it would be nice if this could work with @Configurable.

    Comment


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

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

      Comment

      Working...
      X