Chapter 4. Events, interceptors and exception handling

Chapter 4. Events, interceptors and exception handling

4.1. Seam events
4.1.1. Page actions
4.1.2. Component-driven events
4.1.3. Contextual events
4.2. Seam interceptors
4.3. Managing exceptions
4.3.1. Exceptions and transactions
4.3.2. Enabling Seam exception handling
4.3.3. Using annotations for exception handling
4.3.4. Using XML for exception handling

Complementing the contextual component model, there are two further basic concepts that facilitate the extreme loose-coupling that is the distinctive feature of Seam applications. The first is a strong event model where events may be mapped to event listeners via JSF-like method binding expressions. The second is the pervasive use of annotations and interceptors to apply cross-cutting concerns to components which implement business logic.