Wrapping Up the Developer Perspective

Throughout this chapter, you have developed several components for Cocoon. You started by exploring the sitemap components. This covered actions, selectors, generators, readers, and transformers. Then you fine-tuned these components by writing cache-aware components and providing your own protocol to use with Cocoon. You finished by writing and adding your own mail component.

As you saw in this chapter, developing components for Cocoon is often very simple. In most cases, it comes down to implementing an interface and, even simpler, extending a provided abstract class.

The best way to get to know Cocoon is to look into the provided source code. Just start by exploring some simple classes such as FileGenerator ...

Get Cocoon: Building XML Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.