public class BinaryGrailsPlugin extends DefaultGrailsPlugin
Models a pre-compiled binary plugin.
Modifiers | Name | Description |
---|---|---|
static String |
DEFAULT_PROPERTIES_ENCODING |
|
static String |
PLUGIN_DESCRIPTOR_PATH |
|
static String |
PROPERTIES_EXTENSION |
|
static String |
RELATIVE_VIEWS_PROPERTIES |
|
static char |
UNDERSCORE |
|
static String |
VIEWS_PROPERTIES |
Fields inherited from class | Fields |
---|---|
class DefaultGrailsPlugin |
logger, 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(Class<?> pluginClass, BinaryGrailsPluginDescriptor descriptor, GrailsApplication application) Creates a binary plugin instance. |
Type Params | Return Type | Name and description |
---|---|---|
|
public BinaryGrailsPluginDescriptor |
getBinaryDescriptor()
|
|
public File |
getProjectDirectory() |
|
public Properties |
getProperties(Locale locale) Obtains all properties for this binary plugin for the given locale. |
|
public Class<?>[] |
getProvidedArtefacts() |
|
public Resource |
getResource(String path) Resolves a static resource contained within this binary plugin |
|
protected void |
initializeProvidedArtefacts(List<String> classNames) |
|
protected void |
initializeViewMap(BinaryGrailsPluginDescriptor descriptor) |
|
public Class<?> |
resolveView(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 resource