Skip to content

refactor: hexagonal architecture remediation — data @ComponentScan removal - #7

Merged
casc84ab merged 1 commit into
developfrom
feature/hexagonal-architecture-remediation
Feb 13, 2026
Merged

refactor: hexagonal architecture remediation — data @ComponentScan removal#7
casc84ab merged 1 commit into
developfrom
feature/hexagonal-architecture-remediation

Conversation

@ancongui

Copy link
Copy Markdown
Contributor

Summary

  • Removed @ComponentScan(basePackages = "org.fireflyframework.data") from DataEnrichmentAutoConfiguration
  • Added 9 explicit @Bean @ConditionalOnMissingBean methods for: JobMetricsService, JobTracingService, JsonSchemaGenerator, JobEventPublisher, EnrichmentEventPublisher, OperationEventPublisher, DataJobDiscoveryService, JobResultMapperRegistry, JobOrchestratorHealthIndicator
  • Removed @Service/@Component from all 9 implementation classes
  • Moved @ConditionalOnProperty from EnrichmentEventPublisher and OperationEventPublisher to their respective @Bean methods

Test Plan

  • Module compiles successfully
  • Verify all 9 beans are created via auto-configuration
  • Verify @ConditionalOnMissingBean allows overrides
  • Verify @eventlistener on DataJobDiscoveryService still fires

…moval

Part of the Firefly Framework hexagonal architecture remediation.

- Remove @componentscan from DataEnrichmentAutoConfiguration
- Add 9 explicit @bean @ConditionalOnMissingBean methods
- Remove @Service/@component from 9 component classes
- Move @ConditionalOnProperty from classes to @bean methods
@ancongui
ancongui requested a review from casc84ab February 12, 2026 22:05

@casc84ab casc84ab left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM - 9 explicit beans replace @componentscan. @ConditionalOnProperty correctly moved to @bean methods.

@casc84ab
casc84ab merged commit 01fce8e into develop Feb 13, 2026
4 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