This post explains how to automate logging in Java methods using JavaParser. The provided code parses a Java file, locates a Logger instance, and injects Entering and Exiting log statements at the start and end of each method. This automation saves time and makes tracking program flow easier without manual log insertion.
Programming
Field notes on AEM, Java, web development, performance, tooling, and the little fixes that save future-you an afternoon.
Blog post about a collection of AEM cheat sheets used in daily AEM development.
Read featuredBrowse the archive
Latest Articles
This blog post explains how to create a custom service in AEM to monitor replication queues. The service checks if the queue is blocked and sends notifications to admin users if issues arise. It also includes a scheduler to automatically run the monitoring at set intervals.
Learn how to display a spinner dialog and block user input during REST API calls in AEM by using Coral UI.
Blog post about a collection of AEM cheat sheets used in daily AEM development.
Learn more about the Page Visibility API and its usefulness across different applications by monitoring whether a page is visible or hidden.
Explore how artificial intelligence like ChatGPT can be a helpful friend in making software development and testing simpler and faster.
AEM tutorial shows you the best way to fetch resources using resolver and avoid common pitfalls.
A java utility to convert Java bytecode to readable code seamlessly through a user-friendly graphical interface, simplifying code analysis and comprehension
Learn more details about hidden HTML attributes used in web development, including features like `contenteditable` for direct content editing, secure content embedding with `sandbox`, and script optimization using `async` and `defer`. Elevate your web development skills with these powerful techniques.
Java utility designed to replicate mouse click events triggered by a timer.
Learn how to use a JavaScript bookmarklet to extract asset details from different AEM consoles.
This post provides an in-depth tutorial for mastering XPath queries in Java, covering setup and practical examples for efficient XML document manipulation.
Learn how to register/invoke a servlet on all pages of AEM.
Learn how to resolve PKIX path building issues during java based application development.
Learn how to store your PuTTY session information so that you don't enter username and password everytime you log in.
Learn how to gracefully handle broken images on html page.
Learn how to transliterate text from asian languages to english
Learn about difference between jcr:lastModified and cq:lastModified in AEM
Learn how to get the first element of JavaScript array without using index