org.codehaus.groovy.grails.plugins
Class PluginInfo
java.lang.Object
groovy.lang.GroovyObjectSupport
org.codehaus.groovy.grails.plugins.PluginInfo
- All Implemented Interfaces:
- groovy.lang.GroovyObject, GrailsPluginInfo
public class PluginInfo
- extends groovy.lang.GroovyObjectSupport
- implements GrailsPluginInfo, groovy.lang.GroovyObject
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PluginInfo
public PluginInfo(Resource pluginXml,
PluginBuildSettings pluginBuildSettings)
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClass
in interface groovy.lang.GroovyObject
- Overrides:
getMetaClass
in class groovy.lang.GroovyObjectSupport
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClass
in interface groovy.lang.GroovyObject
- Overrides:
setMetaClass
in class groovy.lang.GroovyObjectSupport
invokeMethod
public Object invokeMethod(String method,
Object arguments)
- Specified by:
invokeMethod
in interface groovy.lang.GroovyObject
- Overrides:
invokeMethod
in class groovy.lang.GroovyObjectSupport
getProperty
public Object getProperty(String property)
- Specified by:
getProperty
in interface groovy.lang.GroovyObject
- Overrides:
getProperty
in class groovy.lang.GroovyObjectSupport
setProperty
public void setProperty(String property,
Object value)
- Specified by:
setProperty
in interface groovy.lang.GroovyObject
- Overrides:
setProperty
in class groovy.lang.GroovyObjectSupport
getPluginDir
public Resource getPluginDir()
- Specified by:
getPluginDir
in interface GrailsPluginInfo
- Returns:
- The directory where the plugin exists or null if it cannot be read
setPluginDir
public void setPluginDir(Resource value)
getPluginBuildSettings
public PluginBuildSettings getPluginBuildSettings()
setPluginBuildSettings
public void setPluginBuildSettings(PluginBuildSettings value)
getMetadata
public Object getMetadata()
setMetadata
public void setMetadata(Object value)
setName
public void setName(String value)
setVersion
public void setVersion(String value)
parseMetadata
public groovy.util.slurpersupport.GPathResult parseMetadata(Resource pluginXml)
getVersion
public String getVersion()
- Specified by:
getVersion
in interface GrailsPluginInfo
- Returns:
- The version of the plug-in
getName
public String getName()
- Specified by:
getName
in interface GrailsPluginInfo
- Returns:
- The name of the plug-in
getPluginDirectory
public Resource getPluginDirectory()
getDescriptor
public Resource getDescriptor()
- Description copied from interface:
GrailsPluginInfo
- Returns the location of the Resource that represents the plugin descriptor (the *GrailsPlugin.groovy file)
- Specified by:
getDescriptor
in interface GrailsPluginInfo
- Returns:
- The resource
getFullName
public String getFullName()
- Specified by:
getFullName
in interface GrailsPluginInfo
- Returns:
- The full name of the plugin including version
getProperties
public Map getProperties()
- Description copied from interface:
GrailsPluginInfo
- Gets the properties of the plugin as a map
- Specified by:
getProperties
in interface GrailsPluginInfo
- Returns:
- A map of the properties
$getStaticMetaClass
protected groovy.lang.MetaClass $getStaticMetaClass()