Tagged articles

Dynamic Bean Registration

9 articles · Page 1 of 1
Java Architecture Diary
Java Architecture Diary
Nov 17, 2025 · Backend Development

Simplify Dynamic Bean Registration in Spring Boot 4 with the New BeanRegistrar API

This article explains how Spring Framework 7 introduces the BeanRegistrar interface to replace the cumbersome ImportBeanDefinitionRegistrar, demonstrating the new API with concise code examples, comparing old and new approaches, and providing a complete practical example for dynamically registering beans based on runtime configuration.

BeanRegistrarDynamic Bean RegistrationJava
0 likes · 11 min read
Simplify Dynamic Bean Registration in Spring Boot 4 with the New BeanRegistrar API
Senior Xiao Ying
Senior Xiao Ying
Oct 9, 2025 · Backend Development

Dynamic Bean Registration in Spring Boot: Using Extension Points and Conditional Annotations

This guide explains multiple ways to dynamically register beans in Spring Boot—including @ConditionalOnProperty, ImportBeanDefinitionRegistrar, the new Spring 7 BeanRegistrar API, and runtime registration via @PostConstruct—while outlining configuration details, lifecycle considerations, and best‑practice recommendations for flexible, condition‑driven bean management.

BeanRegistrarConditionalOnPropertyDynamic Bean Registration
0 likes · 8 min read
Dynamic Bean Registration in Spring Boot: Using Extension Points and Conditional Annotations
Java Web Project
Java Web Project
Aug 26, 2025 · Backend Development

How to Hot‑Deploy User‑Provided JAR Implementations in a Spring‑Based System

This article walks through building a simple Calculator interface, creating a dual‑mode implementation, and then dynamically loading, registering, and unloading user‑supplied JAR files at runtime using reflection or Spring annotation processing, complete with utility methods and a test harness.

Dynamic Bean RegistrationHot DeploymentJAR Loading
0 likes · 9 min read
How to Hot‑Deploy User‑Provided JAR Implementations in a Spring‑Based System
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 26, 2025 · Backend Development

How to Dynamically Register Beans in Spring Boot 3 Using BeanDefinitionRegistryPostProcessor

This article demonstrates how to dynamically register Spring Boot 3 beans using BeanDefinitionRegistryPostProcessor and configuration properties, covering property setup, bean class definition, post‑processor implementation, registration in a configuration class, and a CommandLineRunner test that prints the created beans.

BeanDefinitionRegistryPostProcessorDynamic Bean Registrationconfiguration-properties
0 likes · 7 min read
How to Dynamically Register Beans in Spring Boot 3 Using BeanDefinitionRegistryPostProcessor
macrozheng
macrozheng
Jan 24, 2025 · Backend Development

How to Hot‑Deploy Custom Java Interfaces with Spring Boot and Reflection

This guide demonstrates how to enable hot deployment of user‑provided Java interface implementations in a Spring Boot application, covering both annotation‑based and reflection‑based approaches, jar uploading, dynamic bean registration, class loading, and cleanup, with complete code examples.

Dynamic Bean RegistrationHot DeploymentReflection
0 likes · 8 min read
How to Hot‑Deploy Custom Java Interfaces with Spring Boot and Reflection
Top Architect
Top Architect
Jun 23, 2022 · Backend Development

Hot Deployment of User‑Implemented Interfaces in Java: Annotation and Reflection Approaches

This article demonstrates how to define a simple Java interface, provide two implementation styles (Spring‑annotation and pure‑reflection), package the implementation as a JAR, and dynamically load, register, replace, or remove the implementation at runtime using URLClassLoader and Spring's bean factory.

AnnotationDynamic Bean RegistrationHot Deployment
0 likes · 8 min read
Hot Deployment of User‑Implemented Interfaces in Java: Annotation and Reflection Approaches
Selected Java Interview Questions
Selected Java Interview Questions
Jun 20, 2022 · Backend Development

Hot Deployment of Custom Java Interface Implementations Using Reflection and Spring

This article demonstrates how to design a simple Calculator interface, provide two implementation strategies (annotation‑based Spring beans and reflection‑based classes), and dynamically load, register, and unload user‑supplied JAR files at runtime through hot‑deployment mechanisms in a Java backend system.

Dynamic Bean RegistrationHot DeploymentJAR Loading
0 likes · 8 min read
Hot Deployment of Custom Java Interface Implementations Using Reflection and Spring
Top Architect
Top Architect
Jun 17, 2022 · Backend Development

Hot Deployment of Java Interface Implementations Using Jar Packages with Spring and Reflection

This article demonstrates how to design a simple Calculator interface, provide two implementation strategies (Spring annotation and reflection), and achieve hot deployment by uploading JAR files, dynamically loading classes, registering or removing beans in the Spring container, and testing the runtime behavior.

Dynamic Bean RegistrationHot DeploymentJAR Loading
0 likes · 10 min read
Hot Deployment of Java Interface Implementations Using Jar Packages with Spring and Reflection