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?
By the way, iPOJO creates service objects only when they are needed
(laziness) except if you configure it to be immediate.
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]