org.codehaus.groovy.grails.plugins
Class PluginInfo

java.lang.Object
  extended by groovy.lang.GroovyObjectSupport
      extended by 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


Field Summary
 
Fields inherited from interface org.codehaus.groovy.grails.plugins.GrailsPluginInfo
NAME, TRAILING_NAME, VERSION
 
Constructor Summary
PluginInfo(Resource pluginXml, PluginBuildSettings pluginBuildSettings)
           
 
Method Summary
protected  groovy.lang.MetaClass $getStaticMetaClass()
           
 Resource getDescriptor()
          Returns the location of the Resource that represents the plugin descriptor (the *GrailsPlugin.groovy file)
 String getFullName()
           
 groovy.lang.MetaClass getMetaClass()
           
 Object getMetadata()
           
 String getName()
           
 PluginBuildSettings getPluginBuildSettings()
           
 Resource getPluginDir()
           
 Resource getPluginDirectory()
           
 Map getProperties()
          Gets the properties of the plugin as a map
 Object getProperty(String property)
           
 String getVersion()
           
 Object invokeMethod(String method, Object arguments)
           
 groovy.util.slurpersupport.GPathResult parseMetadata(Resource pluginXml)
           
 void setMetaClass(groovy.lang.MetaClass mc)
           
 void setMetadata(Object value)
           
 void setName(String value)
           
 void setPluginBuildSettings(PluginBuildSettings value)
           
 void setPluginDir(Resource value)
           
 void setProperty(String property, Object value)
           
 void setVersion(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginInfo

public PluginInfo(Resource pluginXml,
                  PluginBuildSettings pluginBuildSettings)
Method Detail

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()