I have a class
class ObjPool { MyObject getObject() {...} void returnObject() {...} int getUsedCount() {...} }
How can we use Spring framework so that it would provide only one copy of this factory to all (web) applications and so that each and every application use the same ObjPool?
I mean if app A gets an object from this ObjPool, then all other applications that invoke getUsedCount() will see that value decremented.