Skip to content

refactor: hexagonal architecture remediation — ECM @ComponentScan removal#13

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

refactor: hexagonal architecture remediation — ECM @ComponentScan removal#13
casc84ab merged 1 commit intodevelopfrom
feature/hexagonal-architecture-remediation

Conversation

@ancongui
Copy link
Copy Markdown
Contributor

Summary

  • Removed @ComponentScan(basePackages = "org.fireflyframework.ecm") from EcmAutoConfiguration
  • Added 5 explicit @Bean @ConditionalOnMissingBean methods: AdapterRegistry, AdapterSelector, NoOpAdapterFactory, LocalDocumentSearchAdapter, LocalPermissionAdapter
  • Added @ConditionalOnMissingBean to existing ecmPortProvider bean
  • Removed @Component/@Service from 6 classes
  • Preserved @EcmAdapter marker annotations on local adapters
  • Preserved @PostConstruct on AdapterRegistry (Spring invokes it on @Bean-created instances)

Test Plan

  • Module compiles successfully
  • Verify all ECM beans created via auto-configuration
  • Verify adapter registry auto-discovery still works

…oval

Part of the Firefly Framework hexagonal architecture remediation.

- Remove @componentscan from EcmAutoConfiguration
- Add 5 explicit @bean @ConditionalOnMissingBean methods
- Remove @Component/@service from 6 infrastructure classes
- Move @ConditionalOnProperty from adapter classes to @bean methods
@ancongui ancongui requested a review from casc84ab February 12, 2026 22:05
@casc84ab casc84ab merged commit d9c3bc3 into develop Feb 13, 2026
4 checks passed
@casc84ab casc84ab deleted the feature/hexagonal-architecture-remediation branch February 13, 2026 09:10
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