eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'SharedPool':

Home

everywhere
www.exept.de
for:
[back]

Class: SharedPool


Inheritance:

   Object
   |
   +--SharedPool
      |
      +--Nfs4Constants
      |
      +--SftpConstants

Package:
stx:libbasic
Category:
Kernel-Classes
Version:
rev: 1.8 date: 2009/10/12 19:09:14
user: cg
file: SharedPool.st directory: libbasic
module: stx stc-classLibrary: libbasic

Description:


A shared pool represents a set of bindings which are accessible to all classes
which import the pool in its 'pool dictionaries'.
SharedPool is NOT a dictionary but rather a name space.
Bindings are represented by 'class variables' - as long as we have no better way to represent
them at least. This is done to make stc happy (or at least, to not be forced to adapt it
to any new semantics).


Class protocol:

Compatibility-V'Age
o  declareConstant: constantName value: value

name lookup
o  at: name
retrieve a pool variable by name

o  at: name ifAbsent: aBlock
retrieve a pool variable by name

o  bindingOf: varName
Answer the binding of some variable resolved in the scope of the receiver

o  bindingsDo: aBlock

o  classBindingOf: varName
For initialization messages grant the regular scope

o  includesKey: aSymbol

o  keys

o  keysDo: aBlock

printing & storing
o  displayString
return a printed represenation - here, a reminder is appended,
that this is not a regular class

queries
o  isSharedPool



ST/X 6.1.1; WebServer 1.620 at exept:8081; Tue, 22 May 2012 22:10:15 GMT