Enterprise Java Development@TOPIC@

Part XXIV. JavaEE Interceptors

2015-11-18 03:12 EST

Table of Contents

Purpose
1. Goals
2. Objectives
115. EJB Interceptors
115.1. Business Method Callbacks
115.2. InvocationContext
115.3. Lifecycle Callbacks
115.4. Timer Callbacks
115.5. Activating Interceptors
115.6. Summary
116. CDI Interceptors
116.1. @InterceptorBinding Annotation
116.2. Interceptor Class
116.3. CDI Bean Class
116.4. CDI Descriptor (beans.xml) Activation
116.5. Summary
117. Interceptor Example: Input Normalization and Validation
117.1. EJB Method Creates Contact
117.2. Non-normalized Caller Data
117.3. Partial Solution: Validation API
117.4. PrePersistCheck
117.5. PostNormalizedCheck
117.6. PreNormalizedCheck
117.7. Validator Interceptors
117.8. Normalization Interceptor
117.9. Bean Class
117.10. CDI Activation (bean.xml)
117.11. Example Output
117.12. Summary