[Zope3-checkins] CVS: Zope3/src/zope/app/services - README.txt:1.11

Jim Fulton jim at zope.com
Mon Dec 22 14:37:31 EST 2003


Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv31351

Modified Files:
	README.txt 
Log Message:
Added a glossary.


=== Zope3/src/zope/app/services/README.txt 1.10 => 1.11 ===
--- Zope3/src/zope/app/services/README.txt:1.10	Mon Aug  4 19:12:49 2003
+++ Zope3/src/zope/app/services/README.txt	Mon Dec 22 14:37:31 2003
@@ -41,7 +41,7 @@
 Many services act as component registries.  Their primary job is to
 allow components to be looked up based on parameters such as names,
 interfaces or both. Examples of component registries include the
-adapter service, the view service, the service service, and the
+adapter service, the presentation service, the service service, and the
 utility service.
 
 An important feature of component registration services is that they
@@ -103,6 +103,61 @@
 
 Implementation of services that support registration is substantially
 more difficult that implementation of non-registry services.
+
+High-level registration concepts glossary
+-----------------------------------------
+
+There are several major concepts/terms that need to be understood
+
+- Registerables
+
+  Registerables are objects that can be registered.  The implement the
+  ``IRegisterable'' interface.
+
+- Registries
+
+  Registeries are objects that registerables are registered with.
+  Typically, these are component-management services like the adapter
+  or utility service.
+
+- Registration objects
+
+  Registration objects store data about registrations.  They store
+  registration data and represent the relationship between registries
+  and registerables.
+
+- Registration managers
+
+  Registration managers are containers for managing registrations.
+  Registrations are stored in registration managers.  All of the
+  registrations for objects stored in a site-management folder are
+  contained in the folder's registration manager. Currently, the
+  registration manager is an item in the folder. We want to change
+  this so that the registration manager is exposed as a folder tab
+  rather than as an item.
+
+- Registration stack
+
+  Registries allow multiple registrations for the same set of
+  registration parameters. At most one registration for a set of
+  parameters can be active at one time, but multiple registrations are
+  managed. 
+
+  Registries provide functions for looking up (``queryRegistrationsFor'')
+  or creating (``createRegistrationsFor'') registration stacks.  These
+  methods are passed registration objects whos attribute values are
+  used to specify the desired registration stacks.
+
+  This is a little but confusing, so we'll look at an example.
+  Utilities are registered using 2 parameterer, the interface provided
+  by the uttility, and the utility name.  For a given interface and
+  name, the utility service may have multiple ustility
+  registrations. It uses a registration stack to store these. We can
+  get the registration stack by calling ``queryRegistrationsFor'' with
+  a registration object that has the desired interface and name.  The
+  registration object passed need not be in in the stack. It is used
+  soley to provide the parameters.  
+
 
 Examples
 --------




More information about the Zope3-Checkins mailing list