Models a pre-compiled binary plugin.
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
VIEWS_PROPERTIES |
Fields inherited from class | Fields |
---|---|
class DefaultGrailsPlugin |
LOG, pluginBean |
class AbstractGrailsPlugin |
application, applicationContext, dependencies, dependencyNames, evictionList, isBase, manager, pluginClass, version |
Constructor and description |
---|
BinaryGrailsPlugin
(java.lang.Class<?> pluginClass, BinaryGrailsPluginDescriptor descriptor, GrailsApplication application) Creates a binary plugin instance. |
Type | Name and description |
---|---|
protected java.util.List<java.lang.String> |
calculateFilenamesForLocale(java.lang.String basename, java.util.Locale locale) Calculate the filenames for the given bundle basename and Locale, appending language code, country code, and variant code. |
BinaryGrailsPluginDescriptor |
getBinaryDescriptor() @return The META-INF/grails-plugin.xml descriptor |
java.util.Properties |
getProperties(java.util.Locale locale) Obtains all properties for this binary plugin for the given locale. |
java.lang.Class<?>[] |
getProvidedArtefacts() |
org.springframework.core.io.Resource |
getResource(java.lang.String path) Resolves a static resource contained within this binary plugin |
protected void |
initializeProvidedArtefacts(groovy.util.slurpersupport.GPathResult descriptor) |
protected void |
initializeViewMap(BinaryGrailsPluginDescriptor descriptor) |
java.lang.Class |
resolveView(java.lang.String viewName) Resolves a view for the given view name. |
Creates a binary plugin instance.
pluginClass
- The plugin classdescriptor
- The META-INF/grails-plugin.xml descriptorapplication
- The applicationCalculate the filenames for the given bundle basename and Locale, appending language code, country code, and variant code. E.g.: basename "messages", Locale "de_AT_oo" -> "messages_de_AT_OO", "messages_de_AT", "messages_de".
Follows the rules defined by java.util.Locale#toString().
basename
- the basename of the bundlelocale
- the locale
Obtains all properties for this binary plugin for the given locale. Note this method does not cache so clients should in general cache the results of this method.
locale
- The localeResolves a static resource contained within this binary plugin
path
- The relative path to the static resourceResolves a view for the given view name.
viewName
- The view name