storableobject.rb

Path: lib/mues/storableobject.rb  (CVS)
Last Update: Sat Aug 18 22:54:10 -0700 2007

This file contains the MUES::StorableObject and MUES::ShallowReference classes. MUES::StorableObject is the abstract base class for all objects which can be stored in a MUES::ObjectStore, and MUES::ShallowReference objects can be used to maintain "shallow" references to objects in the store, lazily (and transparently) loading the real object back into memory as it is needed.

Synopsis

  require 'mues/storableobject'

  class MyObject < MUES::StorableObject
  end

  obj = MyObject::new
  objId = obj.objectStoreId
  objectStore.register( obj )

  # ...later...
  obj = objectStore.retrieve( objId )

Authors

  • Martin Chase <stillflame@FaerieMUD.org>
  • Michael Granger <ged@FaerieMUD.org>

Copyright

Copyright (c) 2000-2003 The FaerieMUD Consortium. All rights reserved.

This module is free software. You may use, modify, and/or redistribute this software under the terms of the Perl Artistic License. (See language.perl.com/misc/Artistic.html)

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

Required files

rbconfig  

[Validate]