Hi,
On 15.07.2009, at 00:19, John Stump wrote:
There is a pattern I am trying to recreate within the iPOJO world,
but I can't quite figure it out.
I want to be able to look up a service, create an instance of it,
use it, and toss it away. What iPOJO seems to support is creating
instances of services up front and have them ready and waiting. But
I don't want that. I want a service to be instantiated on demand.
How do I do this?
One thought I had was to not create an instance of the service in
the metadata.xml, then the client can get the factory of the
service, create an instance, then discard it when it is through with
it. But this approach seems somewhat clumsy. Is there a better way?
That's the main way. However, you can also use the iPOJO API. Then,
you can declare you component type, directly and easily create
instances and dispose them.
Regards,
Clement
Thanks!
john
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]