org.codehaus.groovy.grails.plugins
Class BasicGrailsPluginInfo
java.lang.Object
groovy.lang.GroovyObjectSupport
org.codehaus.groovy.grails.plugins.BasicGrailsPluginInfo
- All Implemented Interfaces:
- groovy.lang.GroovyObject, GrailsPluginInfo
public class BasicGrailsPluginInfo
- extends groovy.lang.GroovyObjectSupport
- implements GrailsPluginInfo
Simple Javabean implementation of the GrailsPluginInfo interface.
- Since:
- 1.3
| Methods inherited from class groovy.lang.GroovyObjectSupport |
getMetaClass, invokeMethod, setMetaClass |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
BasicGrailsPluginInfo
public BasicGrailsPluginInfo(Resource pluginLocation)
getName
public java.lang.String getName()
- Specified by:
getName in interface GrailsPluginInfo
- Returns:
- The name of the plug-in
setName
public void setName(java.lang.String name)
getVersion
public java.lang.String getVersion()
- Specified by:
getVersion in interface GrailsPluginInfo
- Returns:
- The version of the plug-in
setVersion
public void setVersion(java.lang.String version)
setProperty
public void setProperty(java.lang.String property,
java.lang.Object newValue)
- Specified by:
setProperty in interface groovy.lang.GroovyObject- Overrides:
setProperty in class groovy.lang.GroovyObjectSupport
getProperty
public java.lang.Object getProperty(java.lang.String property)
- Specified by:
getProperty in interface groovy.lang.GroovyObject- Overrides:
getProperty in class groovy.lang.GroovyObjectSupport
getFullName
public java.lang.String getFullName()
- Specified by:
getFullName in interface GrailsPluginInfo
- Returns:
- The full name of the plugin including version
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
getPluginDir
public Resource getPluginDir()
- Specified by:
getPluginDir in interface GrailsPluginInfo
- Returns:
- The directory where the plugin exists or null if it cannot be read
getProperties
public java.util.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
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object