Understanding AS3 Reflection: getDefinitionByName, getQualifiedClassName, and getQualifiedSuperclassName
The flash.utils package provides several reflection methods that allow developers to inspect class information at runtime. These utilities can transform string class paths into actual class references and retrieve metadata about object hierarchies.
getDefinitionByName
This function converts a fully-qualified class name string into an actual cla ...
Posted on Sun, 02 Aug 2026 16:40:51 +0000 by aboyd
Understanding Java Reflection Through Practical Examples
Java reflection is a powerful feature that enables inspection and manipulation of classes, methods, fields, and constructors at runtime—even when their names are not known at compile time. This capability allows programs to examine or "reflect upon" themselves, and manipulate intenral properties of classes.
Consider this analogy: imag ...
Posted on Thu, 30 Jul 2026 16:10:40 +0000 by Vivid Lust
Implementing and Processing Custom Java Annotations
Creating custom annotations in Java involves defining the annotation interface, applying it to relevant code elements, and then implementing an annotation processor to interpret and act up on these annotations using reflection. This powerful mechanism allows for metadata-driven programming, where code behavior can be influenced without altering ...
Posted on Wed, 29 Jul 2026 17:06:59 +0000 by bijukon
Generating Dynamic Excel Files in Spring Boot with Apache POI
Introduction
Implementing data export functionality is a common requirement in enterprise Java applications. By leveraging the Apache POI library, developers can generate Excel spreadsheets programmatically. This approach allows for dynamic column mapping using Java annotations and reflection, ensuring that the spreadsheet structure remains syn ...
Posted on Tue, 28 Jul 2026 17:14:55 +0000 by Darkmatter5
Implementing Common Field Auto-Fill in Java Spring Boot Monolithic Applications
1. Custom Annotation for Auto-Fill
Define a custom annotation to mark methods that require automatic field populatoin.
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
p ...
Posted on Tue, 28 Jul 2026 16:59:24 +0000 by Knutty
: Java Reflection: Runtime Class Introspection and Dynamic Operations
The Java Reflection API enables programmatic access to class structure and behavior at runtime. Central to this capability is the Class object, which acts as a prototype for every loaded type. When compile-time access is restricted, this prototype object provides a pathway for dynamic instantiation and manipulation.
Constructor Invocation Strat ...
Posted on Mon, 27 Jul 2026 16:41:48 +0000 by simonmlewis
Java Reflection to Access Configuration File Data
Reading Configuration File Data Using Reflection
In Java, it's common to read information from configuration files to set up application settings. Sometimes, using reflection to access these values can increase code flexibility and maintainability. Below is an explanation of how to use reflection to rertieve configuration data, along with a con ...
Posted on Sat, 25 Jul 2026 16:57:28 +0000 by nloding
Demystifying Java Annotations: The Role of Dynamic Proxies and Map-Based Storage
When retrieving metadata at runtime, the Class.getAnnotation() method appears straightforward, but its execution path relies heavily on JVM-level caching and dynamic proxy generation. Every annotated class maintains an internal AnnotationData instance that stores resolved metadata. This cache utilizes a Map<Class<? extends Annotation>, ...
Posted on Thu, 23 Jul 2026 17:06:02 +0000 by fatmikey
Go Language Reflection Fundamentals and Core Principles
Understanding Reflection in Go
Reflection is a powerful mechanism that enables programs to examine and manipulate the internal properties of objects of arbitrary types during runtime. In Go, the built-in reflect package provides capabilities for dynamic type and value manipulation, allowing developers to inspect variable types, struct fields, i ...
Posted on Thu, 23 Jul 2026 16:23:33 +0000 by Pascal P.
How Annotations Work, How to Understand Their Implementation, and a Typical Annotation-driven AOP Workflow
1. The Core Principle of Annotations: "Marker + Parser" Duo
Compare an annotation to a label on a package:
Annotation = label (e.g., "Fragile", "Keep Refrigerated"). It only describes a property; it performs no action.
Parser = courier / warehouse worker. When they see the label, they perform the corresponding act ...
Posted on Sun, 19 Jul 2026 16:22:03 +0000 by quickphp