O'Reilly logo

Professional Plone Development: Building robust, content-centric web applications with Plone 3, an open source Content Management System by Martin Aspeli

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

6. Component Registries Using Utilities

The Zope 3 Component Architecture can be seen as a collection of registries. Code in one component can look up other components by interface and possibly a name, and use them to perform some function. Interfaces are thus the main contract between components, and the Component Architecture is responsible for locating an appropriate implementation of a particular interface for a particular purpose.

Broadly, there are two main types of components:

  • Utilities, which are context-less. Utilities can either act as singletons, looked up by interface, or as registries of similar components, looked up by interface and name.
  • Adapters, which are contextual. Adapters allow code expecting components providing a particular ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required