jdaugherty opened a new pull request, #445: URL: https://github.com/apache/grails-intellij-plugin/pull/445
A GORM data service is an interface (`@Service(Quest) interface QuestService`) whose implementation GORM generates at compile time, but every artefact lookup in GrailsArtifact accepted GrClassDefinition only. The domain-class toolbar therefore said "Nothing here" under "Go To Service" for the service `generate-all` had just written, the interface itself got no toolbar, and the Spring bean discoverer skipped it, while a service written as a class resolved fine. GrailsArtifact now asks a single `isArtefactDefinition` rule, which SERVICE overrides to admit GrInterfaceDefinition; getType, isInstance and the instance cache all go through it, so interfaces under other artefact directories remain unrecognised. The lookups return GrTypeDefinition, the common supertype, and callers were widened accordingly. GrailsTestCase's addService/addController accept interface and trait declarations so the case can be exercised in light fixtures. Reported in the Grails 8 talk at https://github.com/kousen/holygrails8. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
