Skip to content

refactor: hexagonal architecture remediation — cache cleanup#7

Merged
casc84ab merged 2 commits into
developfrom
feature/hexagonal-architecture-remediation
Feb 13, 2026
Merged

refactor: hexagonal architecture remediation — cache cleanup#7
casc84ab merged 2 commits into
developfrom
feature/hexagonal-architecture-remediation

Conversation

@ancongui
Copy link
Copy Markdown
Contributor

Summary

  • Removed @ComponentScan from CacheAutoConfiguration (no components were being scanned — it was a no-op)
  • Removed @Import(CacheAutoConfiguration.class) from @EnableCaching annotation (redundant with .imports file)
  • @EnableCaching is now a marker-only annotation as intended

Test Plan

  • Module compiles successfully
  • Verify cache auto-configuration still activates via .imports
  • Verify @EnableCaching still works as marker annotation

Part of the Firefly Framework hexagonal architecture remediation.

- Remove @componentscan from CacheAutoConfiguration (no-op)
- Remove @import from EnableCaching (redundant with .imports file)
After removing @componentscan from CacheAutoConfiguration, the
ApplicationContextRunner no longer discovers RedisCacheAutoConfiguration
transitively. Explicitly register it alongside CacheAutoConfiguration
so Redis beans are created during integration tests.
@ancongui ancongui requested a review from casc84ab February 12, 2026 22:05
Copy link
Copy Markdown
Contributor

@casc84ab casc84ab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - Clean removal of redundant @componentscan and @import. @EnableCaching is now a proper marker annotation.

@casc84ab casc84ab merged commit 76d1f8e into develop Feb 13, 2026
3 checks passed
@casc84ab casc84ab deleted the feature/hexagonal-architecture-remediation branch February 13, 2026 09:26
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.

2 participants