
1 // 2 // Copyright (c) 2007, Brian Frank and Andy Frank 3 // Licensed under the Academic Free License version 3.0 4 // 5 // History: 6 // 24 Nov 07 Brian Frank Creation 7 // 8 9 ** 10 ** MemResource is a memory based resource which wraps 11 ** an immutable or serialized obj. A MemResource can 12 ** also contain other MemResources. 13 ** 14 class MemResource : Resource 15 { 16 17 ** 18 ** Make a memory based resource which wraps the specified obj. 19 ** The object must be either immutable or serializable. This 20 ** method doesn't `create` the resource, rather it just returns 21 ** an unmounted wrapper Resource. 22 ** 23 new make(Uri uri, Obj obj) 24 25 // subclasses cannot override 26 override final Obj obj 27 28 }