how much getService(..) coast and does hivemind cashes these calls
i mean should i cashe by myself service getter:
private ISomeInterface someservice;
public ISomeInterface getSomeservice(){
if (someservice==null)
someservice=registry.getService(ISomeInterface.class);
return someservice;
}
or its redundant and hivemind do these work for me?
and the other question:
these is web application so on each request i have to perform
registry.setupThread();
and object with service getter stored in session.. so "cashed" service
instance would be old one
So im askng is it bad for threaded environment (and i should somehow clean
my "cash" to perform getService on each request) or its ok and all be fine
--
View this message in context:
http://www.nabble.com/how-much-getService-coast--tf2634343.html#a7352824
Sent from the Hivemind - User mailing list archive at Nabble.com.