There is also a "pooled" service model which is what you want.
-Harish
Andreas Winter wrote:
Hi,
as far as I understand, HiveMind supports two service models, one based on the singleton pattern (one service per classloader), and one based on the current thread (one service per thread).
I would suggest an extension of this model, where these two are special cases:
Simple allow to get service from the registry based on a client-provided object, ie. add a API like
getService(Object ref, String servicePoint, Class serviceClass)
to the registry.
I came around with this, when I tried to get a separate service for each HTTPSession in a web application, which seems impossible with the current models.
Maybe it is also useful to provide a special API to provide configuration contributions programmatically.
Just some proposals Andreas
This means
--------------------------------------------------------------------- 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]
