|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.lang.GroovyObjectSupport org.codehaus.groovy.grails.plugins.AbstractGrailsPlugin org.codehaus.groovy.grails.plugins.DefaultGrailsPlugin org.codehaus.groovy.grails.plugins.BinaryGrailsPlugin
@SuppressWarnings("rawtypes") public class BinaryGrailsPlugin extends DefaultGrailsPlugin
Models a pre-compiled binary plugin.
Field Summary | |
---|---|
static java.lang.String |
BASE_MESSAGES_PROPERTIES
|
static java.lang.String |
VIEWS_PROPERTIES
|
Fields inherited from class DefaultGrailsPlugin | |
---|---|
LOG, pluginBean |
Fields inherited from class AbstractGrailsPlugin | |
---|---|
application, applicationContext, dependencies, dependencyNames, evictionList, isBase, manager, pluginClass, version |
Constructor Summary | |
BinaryGrailsPlugin(java.lang.Class pluginClass, BinaryGrailsPluginDescriptor descriptor, GrailsApplication application)
Creates a binary plugin instance. |
Method Summary | |
---|---|
protected java.util.List
|
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. |
Methods inherited from class groovy.lang.GroovyObjectSupport | |
---|---|
groovy.lang.GroovyObjectSupport#setProperty(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#getProperty(java.lang.String), groovy.lang.GroovyObjectSupport#getMetaClass(), groovy.lang.GroovyObjectSupport#setMetaClass(groovy.lang.MetaClass), groovy.lang.GroovyObjectSupport#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#wait(), groovy.lang.GroovyObjectSupport#wait(long), groovy.lang.GroovyObjectSupport#wait(long, int), groovy.lang.GroovyObjectSupport#equals(java.lang.Object), groovy.lang.GroovyObjectSupport#toString(), groovy.lang.GroovyObjectSupport#hashCode(), groovy.lang.GroovyObjectSupport#getClass(), groovy.lang.GroovyObjectSupport#notify(), groovy.lang.GroovyObjectSupport#notifyAll() |
Field Detail |
---|
public static final java.lang.String BASE_MESSAGES_PROPERTIES
public static final java.lang.String VIEWS_PROPERTIES
Constructor Detail |
---|
public BinaryGrailsPlugin(java.lang.Class pluginClass, BinaryGrailsPluginDescriptor descriptor, GrailsApplication application)
pluginClass
- The plugin classdescriptor
- The META-INF/grails-plugin.xml descriptorapplication
- The application
Method Detail |
---|
protected java.util.List calculateFilenamesForLocale(java.lang.String basename, java.util.Locale locale)
Follows the rules defined by java.util.Locale#toString().
basename
- the basename of the bundlelocale
- the locale
public BinaryGrailsPluginDescriptor getBinaryDescriptor()
public java.util.Properties getProperties(java.util.Locale locale)
locale
- The locale
@Override public java.lang.Class[] getProvidedArtefacts()
public org.springframework.core.io.Resource getResource(java.lang.String path)
path
- The relative path to the static resource
protected void initializeProvidedArtefacts(@SuppressWarnings("hiding") groovy.util.slurpersupport.GPathResult descriptor)
protected void initializeViewMap(@SuppressWarnings("hiding") BinaryGrailsPluginDescriptor descriptor)
public java.lang.Class resolveView(java.lang.String viewName)
viewName
- The view name
Groovy Documentation