Announcement Announcement Module
Collapse
No announcement yet.
Prototype Bean with ref to Singleton? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Prototype Bean with ref to Singleton?

    I have a prototype bean that contains a reference to a singleton bean. The setter for the dependent property is not being called.

    <bean id="loginScreen" class="package.LoginScreen" init-method="init" singleton="false">
    <property name="authenticationService">
    <ref bean="authenticationService"/>
    </property>
    </bean>

    If i define the bean with singleton="true" the setter gets called...

    Is what i am trying to do possible?

    -jm

  • #2
    How is loginScreen referenced? In other words, where are you triggering the instantiation of loginScreen?

    Comment

    Working...
    X