Details
-
Type:
Sub-task
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0-RC4
-
Fix Version/s: 1.3-RC1
-
Component/s: None
-
Labels:None
Description
It should be possible to override services/controllers/etc; summary of problem:
I've written a plugin, called MyPlugin.
I've written an app, called MyApp; which is designed to use MyPlugin for
base/default functionality.
MyPlugin provides a service, called ThisService.
MyApp needs to override or replace the ThisService service.
However when I try to run MyApp, or install MyPlugin into MyApp, when MyApp
has its own ThisService - I get a: "Invalid duplicate class definition of
class ThisService" exception.
This is a major hassle - to get around it I need to temporarily remove
MyApp's ThisService, then install (or) re-install MyPlugin, then remove
MyPlugin's ThisService; then finally put MyApp's ThisService back into
place so that I'm able to continue development/testing with MyApp.
More info:
http://www.nabble.com/how-to-override-a-service-provided-by-a-plugin--to15035806.html
Activity
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 1.0 [ 11939 ] | |
| Description |
It should be possible to override services/controllers/etc; summary of problem: I've written a plugin, called MyPlugin. I've written an app, called MyApp; which is designed to use MyPlugin for base/default functionality. MyPlugin provides a service, called ThisService. MyApp needs to override or replace the ThisService service. However when I try to run MyApp, or install MyPlugin into MyApp, when MyApp has its own ThisService - I get a: "Invalid duplicate class definition of class ThisService" exception. This is a major hassle - to get around it I need to temporarily remove MyApp's ThisService, then install (or) re-install MyPlugin, then remove MyPlugin's ThisService; then finally put MyApp's ThisService back into place so that I'm able to continue development/testing with MyApp. More info: http://www.nabble.com/how-to-override-a-service-provided-by-a-plugin--to15035806.html |
It should be possible to override services/controllers/etc; summary of problem: I've written a plugin, called MyPlugin. I've written an app, called MyApp; which is designed to use MyPlugin for base/default functionality. MyPlugin provides a service, called ThisService. MyApp needs to override or replace the ThisService service. However when I try to run MyApp, or install MyPlugin into MyApp, when MyApp has its own ThisService - I get a: "Invalid duplicate class definition of class ThisService" exception. This is a major hassle - to get around it I need to temporarily remove MyApp's ThisService, then install (or) re-install MyPlugin, then remove MyPlugin's ThisService; then finally put MyApp's ThisService back into place so that I'm able to continue development/testing with MyApp. More info: http://www.nabble.com/how-to-override-a-service-provided-by-a-plugin--to15035806.html |
| Fix Version/s | 1.1 [ 13674 ] |
| Fix Version/s | 1.1-beta1 [ 13674 ] | |
| Fix Version/s | 1.1-beta2 [ 14752 ] |
| Fix Version/s | 1.1-beta2 [ 14752 ] | |
| Fix Version/s | 1.1-beta3 [ 14824 ] |
| Fix Version/s | 1.1-beta3 [ 14824 ] | |
| Fix Version/s | 1.1-RC1 [ 14929 ] |
| Parent | GRAILS-3180 [ 70107 ] | |
| Issue Type | Improvement [ 4 ] | Sub-task [ 7 ] |
| Fix Version/s | 1.1-RC1 [ 14929 ] | |
| Fix Version/s | 1.2 [ 14155 ] |
| Attachment | _GrailsCompile.groovy.patch [ 41663 ] |
| Fix Version/s | 1.2-M1 [ 14155 ] | |
| Fix Version/s | 1.2-M2 [ 15425 ] |
| Fix Version/s | 1.2-M3 [ 15547 ] | |
| Fix Version/s | 1.2-M2 [ 15425 ] |
| Fix Version/s | 1.2-RC1 [ 15774 ] | |
| Fix Version/s | 1.2-M3 [ 15547 ] |
| Fix Version/s | 1.2-RC1 [ 15959 ] | |
| Fix Version/s | 1.2-M4 [ 15774 ] |
| Fix Version/s | 1.3 [ 15400 ] | |
| Fix Version/s | 1.2-RC1 [ 15959 ] |
| Fix Version/s | 1.3-M1 [ 15400 ] | |
| Fix Version/s | 1.3-RC1 [ 16274 ] |
| Remaining Estimate | 0 minutes [ 0 ] | |
| Original Estimate | 0 minutes [ 0 ] |
| Status | Open [ 1 ] | In Progress [ 3 ] |
| Repository | Branch | Revision | Date | Author/Committer | Message |
| Grails Core | master | 595d80a... | 2010-03-24 06:32:07 -0700 | Graeme Rocher / Graeme Rocher | fix for |
| Files Changed | |||||
|
MODIFY
scripts/_GrailsClasspath.groovy
MODIFY scripts/_GrailsClean.groovy MODIFY scripts/_GrailsCompile.groovy MODIFY scripts/_GrailsWar.groovy |
| Repository | Branch | Revision | Date | Author/Committer | Message |
| Grails Core | cli-improvements | 595d80a... | 2010-03-24 06:32:07 -0700 | Graeme Rocher / Graeme Rocher | fix for |
| Files Changed | |||||
|
MODIFY
scripts/_GrailsClasspath.groovy
MODIFY scripts/_GrailsClean.groovy MODIFY scripts/_GrailsCompile.groovy MODIFY scripts/_GrailsWar.groovy |
| Repository | Branch | Revision | Date | Author/Committer | Message |
| Grails Core | 2.0.x | 595d80a... | 2010-03-24 06:32:07 -0700 | Graeme Rocher / Graeme Rocher | fix for |
| Files Changed | |||||
|
MODIFY
scripts/_GrailsClasspath.groovy
MODIFY scripts/_GrailsClean.groovy MODIFY scripts/_GrailsCompile.groovy MODIFY scripts/_GrailsWar.groovy |
| Repository | Branch | Revision | Date | Author/Committer | Message |
| Grails Core | hibernate4 | 595d80a... | 2010-03-24 06:32:07 -0700 | Graeme Rocher / Graeme Rocher | fix for |
| Files Changed | |||||
|
MODIFY
scripts/_GrailsClasspath.groovy
MODIFY scripts/_GrailsClean.groovy MODIFY scripts/_GrailsCompile.groovy MODIFY scripts/_GrailsWar.groovy |
| Repository | Branch | Revision | Date | Author/Committer | Message |
| Grails Core | 2.1.x | 595d80a... | 2010-03-24 06:32:07 -0700 | Graeme Rocher / Graeme Rocher | fix for |
| Files Changed | |||||
|
MODIFY
scripts/_GrailsClasspath.groovy
MODIFY scripts/_GrailsClean.groovy MODIFY scripts/_GrailsCompile.groovy MODIFY scripts/_GrailsWar.groovy |
| Repository | Branch | Revision | Date | Author/Committer | Message |
| Grails Core | 2.2.x | 595d80a... | 2010-03-24 06:32:07 -0700 | Graeme Rocher / Graeme Rocher | fix for |
| Files Changed | |||||
|
MODIFY
scripts/_GrailsClasspath.groovy
MODIFY scripts/_GrailsClean.groovy MODIFY scripts/_GrailsCompile.groovy MODIFY scripts/_GrailsWar.groovy |
| Resolution | Fixed [ 1 ] | |
| Status | In Progress [ 3 ] | Closed [ 6 ] |
| Project Import | Thu Mar 24 21:22:24 CDT 2011 [ 1301019744151 ] |
| Workflow | jira [ 32835 ] | Grails [ 45631 ] |
| Workflow | Grails [ 45631 ] | Copy of Grails [ 53087 ] |
| Workflow | Copy of Grails [ 53087 ] | Grails [ 60497 ] |
| Workflow | Grails [ 60497 ] | Grails2 [ 68075 ] |
| Workflow | Grails2 [ 68075 ] | jira [ 79030 ] |
| Workflow | jira [ 79030 ] | Grails2 [ 87018 ] |
| Workflow | Grails2 [ 87018 ] | jira [ 95360 ] |
| Workflow | jira [ 95360 ] | Grails2 [ 103469 ] |
have to be post 1.0 i'm afraid