-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds new method
doDynamicModules()
to GrailsPluginManager
Enhance `GrailsDynamicPluginRegistryPostProcessor` Adds new tests
- Loading branch information
Showing
5 changed files
with
102 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
grace-plugin-api/src/test/groovy/org/grails/plugins/MenuModuleDescriptor.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package org.grails.plugins | ||
|
||
import grails.plugins.GrailsPlugin | ||
import grails.plugins.exceptions.PluginException | ||
import grails.plugins.descriptors.AbstractModuleDescriptor | ||
|
||
class MenuModuleDescriptor extends AbstractModuleDescriptor { | ||
|
||
String i18n | ||
String title | ||
String link | ||
String location | ||
int order | ||
|
||
MenuModuleDescriptor() { | ||
super() | ||
} | ||
|
||
@Override | ||
void init(GrailsPlugin plugin, Map args) throws PluginException { | ||
super.init(plugin, args) | ||
this.i18n = args.i18n | ||
this.title = args.title | ||
this.link = args.link | ||
this.location = args.location | ||
} | ||
|
||
@Override | ||
String toString() { | ||
StringBuffer sb = new StringBuffer() | ||
sb.append("MenuModuleDescriptor: [") | ||
.append("\n key: ").append(key) | ||
.append("\n name: ").append(name) | ||
.append("\n description: ").append(description) | ||
.append("\n link: ").append(link) | ||
.append("\n title: ").append(title) | ||
.append("\n location: ").append(location) | ||
.append("\n order: ").append(order) | ||
.append("\n params: ").append(params) | ||
.append("]") | ||
sb.toString() | ||
} | ||
} |