Skip to content

Add support TraitInjector for GroovyPage#1591

Merged
rainboyan merged 3 commits into
graceframework:2024.2.xfrom
rainboyan:groovy_page_artefact_handler
Jul 11, 2026
Merged

Add support TraitInjector for GroovyPage#1591
rainboyan merged 3 commits into
graceframework:2024.2.xfrom
rainboyan:groovy_page_artefact_handler

Conversation

@rainboyan

Copy link
Copy Markdown
Member

Introduce GroovyPageClass and GroovyPageArtefactHandler to make GSP as an Artefact, just like Controller, Service, it can be transformed and injected

Use GroovyPageTransform to support TraitInjector for GroovyPage

  • GroovyPageInjector should only inject GroovyPage
  • Introduce GroovyPageTransform to support TraitInjector for GroovyPage
  • Use GrailsAwareInjectionOperation instead of GroovyPageInjectionOperation for GroovyPageClassLoader
  • Deprecated GroovyPageInjectionOperation in favor of GrailsAwareInjectionOperation

Groovy Page now is a Artefact, just like Controller, Service, it can be transformed and injected when compiling
- GroovyPageInjector should only inject GroovyPage
- Introduce GroovyPageTransform to support TraitInjector for GroovyPage
- Use GrailsAwareInjectionOperation instead of GroovyPageInjectionOperation for GroovyPageClassLoader
- Deprecated GroovyPageInjectionOperation in favor of GrailsAwareInjectionOperation
@rainboyan rainboyan added this to the 2024.2.0-M2 milestone Jul 11, 2026
@rainboyan rainboyan self-assigned this Jul 11, 2026
@rainboyan rainboyan added type: feature A general feature theme: refactor Issues related to Framework Code Refactoring labels Jul 11, 2026
@github-project-automation github-project-automation Bot moved this to Todo in 2024.2.0 Jul 11, 2026
@rainboyan rainboyan merged commit 52b3fd1 into graceframework:2024.2.x Jul 11, 2026
2 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in 2024.2.0 Jul 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

theme: refactor Issues related to Framework Code Refactoring type: feature A general feature

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant