[Checkins] SVN: bluebream/website/docs/v1.0/concepts.rst two more concepets explained

Baiju M baiju.m.mail at gmail.com
Tue Jan 26 21:55:37 EST 2010


Log message for revision 108544:
  two more concepets explained
  

Changed:
  U   bluebream/website/docs/v1.0/concepts.rst

-=-
Modified: bluebream/website/docs/v1.0/concepts.rst
===================================================================
--- bluebream/website/docs/v1.0/concepts.rst	2010-01-27 01:48:19 UTC (rev 108543)
+++ bluebream/website/docs/v1.0/concepts.rst	2010-01-27 02:55:37 UTC (rev 108544)
@@ -105,13 +105,40 @@
 Utility
 ~~~~~~~
 
+Utility components are components that serve only one specific
+function, and are not designed to act on another component.  A good
+analogy for Python programmers are functions and methods.  Utility
+components, like Python functions, are standalone objects that do not
+need any other objects to do their work.  Adapter components, like
+Python methods, require another object to work upon.
+
+Utility components will mostly be used for simple, throw-away
+components that serve one simple task, like an XML parser.  Sometimes
+it would be useful to register an object which is not adapting
+anything.  Database connection, XML parser, object returning unique
+Ids etc. are examples of these kinds of objects.  These kind of
+components provided by the ZCA are called utility components.
+
+Utilities are just objects that provide an interface and that are
+looked up by an interface and a name.  This approach creates a global
+registry by which instances can be registered and accessed by
+different parts of your application, with no need to pass the
+instances around as parameters.
+
 Subscriber
 ~~~~~~~~~~
 
 Handler
 ~~~~~~~
 
+Component Registry
+~~~~~~~~~~~~~~~~~~
 
+Registries keep the list of which components are available, which
+interface they provide, which interface(s) they possibly adapt, along
+with an optional registration name.  The ``zope.component`` package
+implements a global component registry.
+
 Object Publishing
 ~~~~~~~~~~~~~~~~~
 



More information about the checkins mailing list