public class BinaryGrailsPlugin extends DefaultGrailsPlugin
GrailsPlugin| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VIEWS_PROPERTIES |
LOG, pluginBeanapplication, applicationContext, dependencies, dependencyNames, evictionList, isBase, manager, pluginClass, versionARTEFACTS, DEPENDS_ON, DO_WITH_APPLICATION_CONTEXT, DO_WITH_DYNAMIC_METHODS, DO_WITH_SPRING, DO_WITH_WEB_DESCRIPTOR, ENVIRONMENTS, EVENT_ON_CHANGE, EVENT_ON_CONFIG_CHANGE, EVENT_ON_SHUTDOWN, EVICT, OBSERVE, ON_CHANGE, ON_CONFIG_CHANGE, ON_SHUTDOWN, PLUGIN_EXCLUDES, PLUGIN_LOAD_AFTER_NAMES, PLUGIN_LOAD_BEFORE_NAMES, PLUGINS_PATH, PROVIDED_ARTEFACTS, SCOPES, STATUS, STATUS_DISABLED, STATUS_ENABLED, TYPE_FILTERS, WATCHED_RESOURCES| Constructor and Description |
|---|
BinaryGrailsPlugin(java.lang.Class<?> pluginClass,
BinaryGrailsPluginDescriptor descriptor,
GrailsApplication application)
Creates a binary plugin instance.
|
| Modifier and Type | Method 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() |
java.util.Properties |
getProperties(java.util.Locale locale)
Obtains all properties for this binary plugin for the given locale.
|
java.lang.Class<?>[] |
getProvidedArtefacts()
Retrieves an array of provided Artefacts that are pre-compiled additions to the GrailsApplication object
but are overridable by the end-user
|
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.
|
addExclude, addExclude, beans, checkForChanges, doArtefactConfiguration, doc, doWithApplicationContext, doWithDynamicMethods, doWithRuntimeConfiguration, doWithWebDescriptor, getDependencyNames, getDependentVersion, getDescriptor, getFullName, getInstance, getLoadAfterNames, getLoadBeforeNames, getLog, getName, getObservedPluginNames, getParentCtx, getPlugin, getPluginDir, getPluginExcludes, getProperties, getResolver, getTypeFilters, getWatchedResourcePatterns, getWatchedResources, hasInterestInChange, isEnabled, notifyOfEvent, notifyOfEvent, refresh, restartContainer, setDescriptor, setParentApplicationContext, setWatchedResources, supportsCurrentScopeAndEnvironment, supportsEnvironment, supportsScope, toStringcompareTo, equals, getEvictionNames, getFileSystemName, getFileSystemShortName, getManager, getPluginClass, getPluginPath, getVersion, hashCode, isBasePlugin, setApplication, setApplicationContext, setBasePlugin, setManagerpublic static final java.lang.String VIEWS_PROPERTIES
public BinaryGrailsPlugin(java.lang.Class<?> pluginClass,
BinaryGrailsPluginDescriptor descriptor,
GrailsApplication application)
pluginClass - The plugin classdescriptor - The META-INF/grails-plugin.xml descriptorapplication - The applicationprotected void initializeViewMap(BinaryGrailsPluginDescriptor descriptor)
protected void initializeProvidedArtefacts(groovy.util.slurpersupport.GPathResult descriptor)
public java.lang.Class<?>[] getProvidedArtefacts()
GrailsPlugingetProvidedArtefacts in interface GrailsPlugingetProvidedArtefacts in class DefaultGrailsPluginpublic BinaryGrailsPluginDescriptor getBinaryDescriptor()
public org.springframework.core.io.Resource getResource(java.lang.String path)
path - The relative path to the static resourcepublic java.util.Properties getProperties(java.util.Locale locale)
locale - The localeprotected java.util.List<java.lang.String> calculateFilenamesForLocale(java.lang.String basename,
java.util.Locale locale)
Follows the rules defined by Locale.toString().
basename - the basename of the bundlelocale - the localepublic java.lang.Class resolveView(java.lang.String viewName)
viewName - The view name