@java.lang.SuppressWarnings("rawtypes") public class BinaryGrailsPlugin extends DefaultGrailsPlugin
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 |
|
private org.springframework.core.io.Resource |
baseResource |
|
private org.springframework.core.io.Resource |
baseResourcesResource |
|
private BinaryGrailsPluginDescriptor |
descriptor |
|
private boolean |
isJar |
|
private java.util.Map<java.lang.String, java.lang.Class> |
precompiledViewMap |
|
private java.io.File |
projectDirectory |
|
private java.lang.Class[] |
providedArtefacts |
Constructor and description |
---|
BinaryGrailsPlugin
(java.lang.Class<?> pluginClass, BinaryGrailsPluginDescriptor descriptor, GrailsApplication application) Creates a binary plugin instance. |
Type Params | Return Type | Name and description |
---|---|---|
|
private org.springframework.core.io.Resource[] |
filterResources(org.springframework.core.io.Resource[] resources, java.util.Locale locale) |
|
public BinaryGrailsPluginDescriptor |
getBinaryDescriptor()
|
|
public java.io.File |
getProjectDirectory() |
|
public java.util.Properties |
getProperties(java.util.Locale locale) Obtains all properties for this binary plugin for the given locale. |
|
public java.lang.Class<?>[] |
getProvidedArtefacts() |
|
public 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) |
|
private void |
loadFromResources(java.util.Properties properties, org.springframework.core.io.Resource[] resources) |
|
public 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