Enterprise Java Development@TOPIC@

Part XXIII. JavaEE Interceptors

2019-08-22 07:11 EST

Table of Contents

Purpose
1. Goals
2. Objectives
118. EJB Interceptors
118.1. Business Method Callbacks
118.1.1. Sample Business Method being Intercepted
118.1.2. Sample Business Method Interceptor
118.1.3. Sample Output
118.2. InvocationContext
118.2.1. InvocationContext Interface
118.3. Lifecycle Callbacks
118.3.1. Lifecycle Callbacks
118.4. Timer Callbacks
118.4.1. Timer Interceptor
118.5. Activating Interceptors
118.5.1. EJB Descriptor (ejb-jar.xml) Activation
118.5.2. @Interceptor(s) Annotation Activation
118.6. Summary
119. CDI Interceptors
119.1. @InterceptorBinding Annotation
119.2. Interceptor Class
119.3. CDI Bean Class
119.4. CDI Descriptor (beans.xml) Activation
119.5. Summary
120. Interceptor Example: Input Normalization and Validation
120.1. EJB Method Creates Contact
120.2. Non-normalized Caller Data
120.3. Partial Solution: Validation API
120.4. PrePersistCheck
120.5. PostNormalizedCheck
120.6. PreNormalizedCheck
120.7. Validator Interceptors
120.8. Normalization Interceptor
120.9. Bean Class
120.10. CDI Activation (bean.xml)
120.11. Example Output
120.12. Summary