Bean validation (JSR 303 and JSR 349) provides facilities to perform data validation in Java EE and SE applications. Liberty supports bean validation for Java EE applications. This article explains what bean validation is, how you can use it, and how it is integrated and supported in Liberty and WebSphere Developer Tools (WDT)
Interceptors are classes that intercept method invocation or lifecycle events of a target class to perform some form of pre- or post-processing that is usually separate from the business logic, such as logging or auditing. The basic functionality of interceptors is defined in the interceptors specification and is extended in the CDI specification. This mini-series on interceptors shows how to create a simple interceptor and associate it with a CDI-managed bean. It also describes how to use multiple interceptors and define their ordering, the different life cycle events that can be intercepted, and how to globally enable an interceptor so it can be used across the whole application.