public class BinaryGrailsPlugin extends DefaultGrailsPlugin
GrailsPlugin
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BASE_MESSAGES_PROPERTIES |
static java.lang.String |
VIEWS_PROPERTIES |
ARTEFACTS, 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, INFLUENCES, 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 |
---|---|
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
|
Resource |
getResource(java.lang.String path)
Resolves a static resource contained within this binary plugin
|
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, toString
compareTo, equals, getEvictionNames, getFileSystemName, getFileSystemShortName, getManager, getPluginClass, getPluginPath, getVersion, hashCode, isBasePlugin, setApplication, setApplicationContext, setBasePlugin, setManager
public static final java.lang.String BASE_MESSAGES_PROPERTIES
public 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 applicationpublic java.lang.Class<?>[] getProvidedArtefacts()
GrailsPlugin
getProvidedArtefacts
in interface GrailsPlugin
getProvidedArtefacts
in class DefaultGrailsPlugin
public BinaryGrailsPluginDescriptor getBinaryDescriptor()
public Resource getResource(java.lang.String path)
path
- The relative path to the static resourcepublic java.util.Properties getProperties(java.util.Locale locale)
locale
- The localepublic java.lang.Class resolveView(java.lang.String viewName)
viewName
- The view name