Skip to content

refactor(templates): introduce @ApplyTemplate and @RollbackTemplate annotations#862

Merged
dieppa merged 1 commit intomasterfrom
refactor/830-test-support-we-are-using-the-version-directly-instead-in-gradle
Mar 12, 2026
Merged

refactor(templates): introduce @ApplyTemplate and @RollbackTemplate annotations#862
dieppa merged 1 commit intomasterfrom
refactor/830-test-support-we-are-using-the-version-directly-instead-in-gradle

Conversation

@dieppa
Copy link
Member

@dieppa dieppa commented Mar 11, 2026

  • Create @ApplyTemplate and @RollbackTemplate as template-specific annotations, mirroring @Apply and @Rollback but dedicated to @ChangeTemplate classes
  • Update AbstractTemplateLoadedChange to look up methods via the new annotations instead of @Apply/@Rollback
  • Update ChangeTemplateManager validation to require @RollbackTemplate on template classes
  • Migrate all test template classes across flamingock-core-api, flamingock-core, flamingock-core-commons, and flamingock-springboot-integration to use the new annotations

This is step 1 toward extracting a self-contained flamingock-template-api module. Code-based @Change classes continue to use @Apply/@Rollback unchanged.

…nnotations

- Create **@ApplyTemplate** and **@RollbackTemplate** as
  template-specific annotations, mirroring `@Apply` and
  `@Rollback` but dedicated to `@ChangeTemplate` classes
- Update **AbstractTemplateLoadedChange** to look up methods
  via the new annotations instead of `@Apply`/`@Rollback`
- Update **ChangeTemplateManager** validation to require
  `@RollbackTemplate` on template classes
- Migrate all test template classes across core and
  springboot modules to use the new annotations

This is step 1 toward extracting a self-contained
`flamingock-template-api` module. Code-based `@Change`
classes continue to use `@Apply`/`@Rollback` unchanged.
@dieppa dieppa force-pushed the refactor/830-test-support-we-are-using-the-version-directly-instead-in-gradle branch from 93f61a6 to f709c0d Compare March 12, 2026 00:19
@dieppa dieppa merged commit e3d4516 into master Mar 12, 2026
4 checks passed
@dieppa dieppa deleted the refactor/830-test-support-we-are-using-the-version-directly-instead-in-gradle branch March 12, 2026 00:37
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