first draft of MVCC using Clojure's Map as state holder, still one test failing though

This commit is contained in:
Jonas Boner 2009-04-04 21:34:10 +02:00
parent a453930503
commit 3e703a53ab
9 changed files with 212 additions and 92 deletions

View file

@ -81,7 +81,10 @@ trait GenericServer extends Actor {
*
* @author <a href="http://jonasboner.com">Jonas Bon&#233;r</a>
*/
class GenericServerContainer(val id: String, var serverFactory: () => GenericServer) extends Logging {
class GenericServerContainer(
val id: String,
var serverFactory: () => GenericServer,
private[kernel] var state: Option[TransientObjectState]) extends Logging {
require(id != null && id != "")
// TODO: see if we can parameterize class and add type safe getActor method