Tagged articles
10 articles
Page 1 of 1
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Mar 18, 2024 · Fundamentals

Understanding Java Annotations: Definition, Essence, Details, and Parsing SOURCE‑Retention Annotations

This article explains what Java annotations are, their underlying nature as interfaces extending Annotation, the various meta‑annotations such as @Retention and @Target, how retention policies affect availability, and demonstrates how to parse SOURCE‑retention annotations using a custom AbstractProcessor with complete code examples.

Annotation ProcessingBackendJava
0 likes · 12 min read
Understanding Java Annotations: Definition, Essence, Details, and Parsing SOURCE‑Retention Annotations
Java Captain
Java Captain
Jan 31, 2024 · Fundamentals

Java Annotations and Reflection: Built‑in Annotations, Meta‑annotations, Custom Annotations, Class Loading, and Reflection API

This article provides a comprehensive overview of Java annotations—including built‑in, meta‑ and custom annotations—explains how they are used with reflection, describes class loading and ClassLoader mechanisms, and demonstrates how to obtain generic and annotation information at runtime using the Reflection API.

Meta-annotations
0 likes · 19 min read
Java Annotations and Reflection: Built‑in Annotations, Meta‑annotations, Custom Annotations, Class Loading, and Reflection API
Architecture & Thinking
Architecture & Thinking
Jul 19, 2022 · Backend Development

Master Java Annotations: From Basics to Custom Usage

This article provides a comprehensive guide to Java annotations, covering built‑in annotations, meta‑annotations, retention policies, repeatable annotations, and how to create and apply custom annotations with reflection and AOP for practical use cases.

Custom AnnotationsJavaMeta-annotations
0 likes · 22 min read
Master Java Annotations: From Basics to Custom Usage
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Mar 6, 2022 · Fundamentals

Comprehensive Guide to Java Annotations (Detailed)

This article provides an in‑depth overview of Java annotations, covering their definition, common applications, built‑in standard annotations, meta‑annotations, functional interfaces, and step‑by‑step instructions for creating and using custom annotations with complete code examples.

Custom AnnotationsJavaMeta-annotations
0 likes · 8 min read
Comprehensive Guide to Java Annotations (Detailed)
Java Interview Crash Guide
Java Interview Crash Guide
May 12, 2021 · Fundamentals

Unlocking Java Annotations: What They Are, How They Work, and How to Create Your Own

Java annotations, introduced in Java 5, provide a metadata mechanism to associate information with program elements, enabling documentation generation, compile‑time checks, and runtime processing; this guide explains their purpose, underlying principles, meta‑annotations, common built‑in annotations, and demonstrates how to define and use custom annotations with full code examples.

Custom AnnotationsJavaMeta-annotations
0 likes · 12 min read
Unlocking Java Annotations: What They Are, How They Work, and How to Create Your Own
Java Captain
Java Captain
Oct 3, 2018 · Fundamentals

Understanding Java Annotations and Meta‑Annotations: Principles, Built‑in Annotations, and Custom Annotation Creation

This article explains the purpose and mechanics of Java annotations introduced in JDK 5, describes the five standard annotations, details the four meta‑annotations (@Target, @Retention, @Inherited, @Documented), and provides step‑by‑step guidance on defining, using, and processing custom annotations with reflection.

Custom AnnotationJavaMeta-annotations
0 likes · 13 min read
Understanding Java Annotations and Meta‑Annotations: Principles, Built‑in Annotations, and Custom Annotation Creation
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jun 13, 2018 · Backend Development

What Are Annotations in Java? Definition, Uses, Meta‑Annotations, and Custom Annotation Example

This article explains Java annotations—what they are, how they work, their common uses such as documentation generation and compile‑time checks, the four built‑in meta‑annotations, standard annotations like @Override, and how to create and apply custom annotations with a complete code example.

Custom AnnotationJavaMeta-annotations
0 likes · 7 min read
What Are Annotations in Java? Definition, Uses, Meta‑Annotations, and Custom Annotation Example