Models a pre-compiled binary plugin.
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
DEFAULT_PROPERTIES_ENCODING |
|
static java.lang.String |
PLUGIN_DESCRIPTOR_PATH |
|
static java.lang.String |
PROPERTIES_EXTENSION |
|
static java.lang.String |
RELATIVE_VIEWS_PROPERTIES |
|
static char |
UNDERSCORE |
|
static java.lang.String |
VIEWS_PROPERTIES |
Fields inherited from class | Fields |
---|---|
class DefaultGrailsPlugin |
LOG, pluginBean |
class AbstractGrailsPlugin |
PLUGIN_GROOVY, PLUGIN_GROOVY_PATH, PLUGIN_YML, PLUGIN_YML_PATH, applicationContext, config, dependencies, dependencyNames, evictionList, grailsApplication, isBase, manager, pluginClass, propertySource, version |
Constructor and description |
---|
BinaryGrailsPlugin
(java.lang.Class<?> pluginClass, BinaryGrailsPluginDescriptor descriptor, GrailsApplication application) Creates a binary plugin instance. |
Type Params | Return Type | Name and description |
---|---|---|
|
BinaryGrailsPluginDescriptor |
getBinaryDescriptor() @return The META-INF/grails-plugin.xml descriptor |
|
java.io.File |
getProjectDirectory() |
|
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(java.util.List<java.lang.String> classNames) |
|
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 application
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