dimanche 26 mai 2019

Java: Design patter for pre and post processing like Servlet filters offer

I have this unique requirement where I have to allow for some processing before and after a method call in Java 8 and version onwards. No requirements of backward compatibility. Also, both pre processing hooks and post processing hooks needs to be extensible. Extensible here means, that any developer should be able to chain the preprocessors and post processors. Also, actual APIs are all asynchronous. I have observed that Servlet filter provide similar kind of functionality but I want this in simple Java application which will not run on server.

Aucun commentaire:

Enregistrer un commentaire