The situation is, I want have a prototype scoped object referenced by a singleton object. In spring, I can do like this:
Java code:
SingletonObject.java
PrototypeObject.javaCode:public class SingletonObject { public PrototypeObject getPrototypeScopedObject() { } }
application-context.xmlCode:public class PrototypeObject { }
so, everytime when I call getPrototypeScopedObject() method in instances of SingletonObject, I'll get a new instance of spring-managed PrototypeObject.Code:<bean class="SingletonObject" scope="singleton"> <lookup-method name="getPrototypeScopedObject"> <bean class="PrototypeObject" scope="prototype" /> </lookup-method> </bean>
I don't know this feature or some way alternative is implemented by spring actionscript, so please anyone could help me to solve this problem - using a spring-managed prototype object in a singleton object.
Thanks a lot.


Reply With Quote
