Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gemini » osgi:list with a listener to a bean with prototype scope
osgi:list with a listener to a bean with prototype scope [message #1008570] Wed, 13 February 2013 00:59
Daniel McGreal is currently offline Daniel McGreal
Messages: 26
Registered: April 2012
Junior Member
Hi, is the below scenario possible?

	<osgi:list cardinality="0..N" id="list" interface="Service">
		<osgi:listener ref="prototypeBean" bind-method="registerService" unbind-method="deregisterService"></osgi:listener>
	</osgi:list>
	
	<bean id="prototypeBean" class="SomeBeanClass" scope="prototype"></bean>


With this code, a new prototypeBean is instantiated at context load time and its listener methods are called when list changes. However, new prototypeBeans do not receive the callbacks.

Is it possible instead that the listener methods are called on new instances of prototypeBean (and ideally that no prototypeBean is instantiated at context load time).

Thanks, Dan.
 
Read Message
Previous Topic:Gemini Blueprint OSGi empty service list with listener
Next Topic:Gemini Blueprint 2.0.0.M01
Goto Forum:
  


Current Time: Sat May 18 08:24:16 EDT 2013

Powered by FUDForum. Page generated in 0.04306 seconds