Skip to main content

Micha Kops: Java EE: Logging User Interaction the Aspect-Oriented Way using Interceptors

[article] Using dependency injection and aspect-oriented mechanisms like interceptors allow us to separate cross-cutting-concerns in our Java enterprise application, to control global aspects of our application and to avoid boilerplate code. In the following short tutorial we’re going to create an aspect-oriented logger to protocol the initiating user, class and method called and the parameters passed to the method and finally we’re adding this interceptor to a sample RESTful web-service...

Community: Java Enterprise