Abstract
We can now start with our example application. The World Cookery website will store information about recipes from around the world. Thus the first thing we need is a component to store recipe information in. As we have discussed in Chapter 2, components that store data are content components. Before we are going to write such a component, we need to define what kind of data it shall store and provide: we need to write an interface!
Interfaces are contracts that define how components work together. They describe the methods and attributes provided by an object. Interfaces describe the what of a component, they do not describe the how. The modelling of interfaces can be tackled many different ways. As we look at these possibilities we will improve the example implementation with each iteration. This process of refactoring occurs a number of times in this book to constantly improve and adjust the code.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2007 Springer-Verlag Berlin Heidelberg
About this chapter
Cite this chapter
(2007). Interfaces. In: Web Component Development with Zope 3. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-33808-6_4
Download citation
DOI: https://doi.org/10.1007/978-3-540-33808-6_4
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-33807-9
Online ISBN: 978-3-540-33808-6
eBook Packages: Computer ScienceComputer Science (R0)