Skip to content

Spring-style DI: a @Component service constructor-injected into a @Controller, plus the Beans facade#7

Merged
iliyan-velichkov merged 1 commit into
masterfrom
feat/spring-style-components
Jun 22, 2026
Merged

Spring-style DI: a @Component service constructor-injected into a @Controller, plus the Beans facade#7
iliyan-velichkov merged 1 commit into
masterfrom
feat/spring-style-components

Conversation

@iliyan-velichkov

@iliyan-velichkov iliyan-velichkov commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

Adds, alongside the existing Country entity / CountryRepository / CountryController, a @Component GreetingService and a GreetingController that receives it through its constructor (the preferred, testable DI style), and demonstrates the client-facing Beans facade for programmatic lookup (Beans.get(GreetingService.class)). Showcases the Spring-style dependency injection enabled by eclipse-dirigible/dirigible#6051.

Depends on eclipse-dirigible/dirigible#6051; CI fails until it merges. Merge after #6051.

🤖 Generated with Claude Code

Demonstrates the Spring-style DI now supported by the client-Java model:
a plain @component service (GreetingService) injected into a controller
(GreetingController) by constructor, plus the Beans facade for programmatic
lookup. Existing CountryController is left untouched as the field-injection
example. README documents the three styles.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@iliyan-velichkov iliyan-velichkov changed the title Add @Component + constructor-injection example and Beans facade Spring-style DI: a @Component service constructor-injected into a @Controller, plus the Beans facade Jun 22, 2026
@iliyan-velichkov iliyan-velichkov merged commit 245a85e into master Jun 22, 2026
@iliyan-velichkov iliyan-velichkov deleted the feat/spring-style-components branch June 22, 2026 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant