Tag

AnnotationProcessing

0 views collected around this technical thread.

政采云技术
政采云技术
Sep 21, 2022 · Backend Development

Understanding Java Annotation Processing (APT) and Implementing a Custom Lombok‑like Processor

This article explains the principles behind Java annotation processing tools such as APT, compares APT with AOP and Java agents, and provides a step‑by‑step guide to creating a custom Lombok‑style annotation processor that generates getters, setters, and toString methods at compile time.

APTAnnotationProcessingBytecodeGeneration
0 likes · 17 min read
Understanding Java Annotation Processing (APT) and Implementing a Custom Lombok‑like Processor
JD Tech
JD Tech
Aug 30, 2022 · Fundamentals

Deep Dive into Java Compiler AST Instrumentation for Monitoring

This article explores how to eliminate repetitive monitoring code in Java services by building a compile‑time instrumentation component that leverages JSR‑269 annotation processing and AST manipulation, detailing the component design, technical selection, compiler internals, implementation steps, and lessons learned.

ASTAnnotationProcessingCompiler
0 likes · 17 min read
Deep Dive into Java Compiler AST Instrumentation for Monitoring
Xianyu Technology
Xianyu Technology
Feb 10, 2022 · Mobile Development

Design and Implementation of an Android Chain Framework for Business Decoupling

The Android Chain framework decouples business modules by turning call points into annotated extension points, generating interface‑to‑implementation mappings at compile time, merging them via a Gradle plugin, and exposing them through a runtime singleton that supports priority, dynamic proxies, custom URL protocols, and ProGuard‑safe automatic registration.

AndroidAnnotationProcessingDependencyInjection
0 likes · 8 min read
Design and Implementation of an Android Chain Framework for Business Decoupling