org.codehaus.groovy.grails.plugins
Class GrailsPluginUtils

java.lang.Object
  extended by org.codehaus.groovy.grails.plugins.GrailsPluginUtils
All Implemented Interfaces:
groovy.lang.GroovyObject

public class GrailsPluginUtils
extends Object
implements groovy.lang.GroovyObject


Field Summary
static Object GRAILS_HOME
           
 
Constructor Summary
GrailsPluginUtils()
           
 
Method Summary
protected  groovy.lang.MetaClass $getStaticMetaClass()
           
static Object clearCaches()
           
static Resource[] getArtefactResources(String basedir)
           
static Resource[] getArtefactResources(String basedir, groovy.lang.Closure resourceResolver)
           
static Resource[] getArtefactResourcesForOne(String projectDir)
           
static Resource[] getArtefactResourcesForOne(String projectDir, groovy.lang.Closure resourceResolver)
           
static Resource[] getAvailableScripts(String grailsHome, String pluginDirPath, String basedir)
           
static Resource[] getAvailableScripts(String grailsHome, String pluginDirPath, String basedir, groovy.lang.Closure resourceResolver)
           
static Resource getBasePluginDescriptor(String basedir)
           
static Object getCOMPARATOR()
           
static Object getDEFAULT_RESOURCE_RESOLVER()
           
static Resource getDescriptorForPlugin(Resource pluginDir)
           
static String getGlobalPluginsPath()
           
static List<Resource> getImplicitPluginDirectories()
           
static List<Resource> getImplicitPluginDirectories(String pluginDirPath)
           
 groovy.lang.MetaClass getMetaClass()
           
static groovy.util.slurpersupport.GPathResult getMetadataForPlugin(Resource pluginDir)
           
static groovy.util.slurpersupport.GPathResult getMetadataForPlugin(String pluginName)
           
static List<String> getPluginBaseDirectories()
           
static List<String> getPluginBaseDirectories(String pluginDirPath)
           
static Resource[] getPluginDescriptors(String basedir, String pluginsDirPath)
           
static Resource[] getPluginDescriptors(String basedir, String pluginsDirPath, groovy.lang.Closure resourceResolver)
           
static Resource[] getPluginDirectories()
           
static Resource[] getPluginDirectories(String pluginDirPath)
           
static Resource getPluginDirForName(String pluginName)
           
static Resource getPluginDirForName(String pluginsDirPath, String pluginName)
           
static PluginInfo[] getPluginInfos()
           
static PluginInfo[] getPluginInfos(String pluginDirPath)
           
static Resource[] getPluginJarFiles(String pluginsDirPath)
           
static Resource[] getPluginJarFiles(String pluginsDirPath, groovy.lang.Closure resourceResolver)
           
static Resource[] getPluginLibDirectories(String pluginsDirPath)
           
static Resource[] getPluginLibDirectories(String pluginsDirPath, groovy.lang.Closure resourceResolver)
           
static Resource[] getPluginResourceBundles(String pluginDirPath)
           
static Resource[] getPluginResourceBundles(String pluginDirPath, groovy.lang.Closure resourceResolver)
           
static Resource[] getPluginScripts(String pluginDirPath)
           
static Resource[] getPluginScripts(String pluginDirPath, groovy.lang.Closure resourceResolver)
           
static Resource[] getPluginSourceFiles(String pluginsDirPath)
           
static Resource[] getPluginSourceFiles(String pluginsDirPath, groovy.lang.Closure resourceResolver)
           
static Resource[] getPluginXmlMetadata(String pluginsDirPath)
           
static Resource[] getPluginXmlMetadata(String pluginsDirPath, groovy.lang.Closure resourceResolver)
           
 Object getProperty(String property)
           
static PluginInfo[] getSupportedPluginInfos()
           
static PluginInfo[] getSupportedPluginInfos(String pluginDirPath)
           
static String getUpperVersion(String pluginVersion)
           
static String getWILDCARD()
           
 Object invokeMethod(String method, Object arguments)
           
static boolean isGlobalPluginLocation(Resource pluginDir)
           
static boolean isValidVersion(String pluginVersion, String requiredVersion)
           
 void setMetaClass(groovy.lang.MetaClass mc)
           
 void setProperty(String property, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GRAILS_HOME

public static Object GRAILS_HOME
Constructor Detail

GrailsPluginUtils

public GrailsPluginUtils()
Method Detail

getWILDCARD

public static String getWILDCARD()

getCOMPARATOR

public static Object getCOMPARATOR()

getDEFAULT_RESOURCE_RESOLVER

public static Object getDEFAULT_RESOURCE_RESOLVER()

isValidVersion

public static boolean isValidVersion(String pluginVersion,
                                     String requiredVersion)

getUpperVersion

public static String getUpperVersion(String pluginVersion)

getPluginInfos

public static PluginInfo[] getPluginInfos(String pluginDirPath)

getSupportedPluginInfos

public static PluginInfo[] getSupportedPluginInfos(String pluginDirPath)

getPluginBaseDirectories

public static List<String> getPluginBaseDirectories(String pluginDirPath)

getPluginBaseDirectories

public static List<String> getPluginBaseDirectories()

getPluginDirectories

public static Resource[] getPluginDirectories()

getPluginDirectories

public static Resource[] getPluginDirectories(String pluginDirPath)

getImplicitPluginDirectories

public static List<Resource> getImplicitPluginDirectories(String pluginDirPath)

isGlobalPluginLocation

public static boolean isGlobalPluginLocation(Resource pluginDir)

getArtefactResources

public static Resource[] getArtefactResources(String basedir,
                                              groovy.lang.Closure resourceResolver)

getArtefactResourcesForOne

public static Resource[] getArtefactResourcesForOne(String projectDir,
                                                    groovy.lang.Closure resourceResolver)

getPluginXmlMetadata

public static Resource[] getPluginXmlMetadata(String pluginsDirPath,
                                              groovy.lang.Closure resourceResolver)

getAvailableScripts

public static Resource[] getAvailableScripts(String grailsHome,
                                             String pluginDirPath,
                                             String basedir,
                                             groovy.lang.Closure resourceResolver)

getPluginScripts

public static Resource[] getPluginScripts(String pluginDirPath,
                                          groovy.lang.Closure resourceResolver)

getPluginResourceBundles

public static Resource[] getPluginResourceBundles(String pluginDirPath,
                                                  groovy.lang.Closure resourceResolver)

getPluginSourceFiles

public static Resource[] getPluginSourceFiles(String pluginsDirPath,
                                              groovy.lang.Closure resourceResolver)

getPluginJarFiles

public static Resource[] getPluginJarFiles(String pluginsDirPath,
                                           groovy.lang.Closure resourceResolver)

getPluginDescriptors

public static Resource[] getPluginDescriptors(String basedir,
                                              String pluginsDirPath,
                                              groovy.lang.Closure resourceResolver)

getBasePluginDescriptor

public static Resource getBasePluginDescriptor(String basedir)

getDescriptorForPlugin

public static Resource getDescriptorForPlugin(Resource pluginDir)

getPluginLibDirectories

public static Resource[] getPluginLibDirectories(String pluginsDirPath,
                                                 groovy.lang.Closure resourceResolver)

getGlobalPluginsPath

public static String getGlobalPluginsPath()

getPluginDirForName

public static Resource getPluginDirForName(String pluginName)

getMetadataForPlugin

public static groovy.util.slurpersupport.GPathResult getMetadataForPlugin(String pluginName)

getMetadataForPlugin

public static groovy.util.slurpersupport.GPathResult getMetadataForPlugin(Resource pluginDir)

getPluginDirForName

public static Resource getPluginDirForName(String pluginsDirPath,
                                           String pluginName)

clearCaches

public static Object clearCaches()

getPluginInfos

public static PluginInfo[] getPluginInfos()

getSupportedPluginInfos

public static PluginInfo[] getSupportedPluginInfos()

getImplicitPluginDirectories

public static List<Resource> getImplicitPluginDirectories()

getArtefactResources

public static Resource[] getArtefactResources(String basedir)

getArtefactResourcesForOne

public static Resource[] getArtefactResourcesForOne(String projectDir)

getPluginXmlMetadata

public static Resource[] getPluginXmlMetadata(String pluginsDirPath)

getAvailableScripts

public static Resource[] getAvailableScripts(String grailsHome,
                                             String pluginDirPath,
                                             String basedir)

getPluginScripts

public static Resource[] getPluginScripts(String pluginDirPath)

getPluginResourceBundles

public static Resource[] getPluginResourceBundles(String pluginDirPath)

getPluginSourceFiles

public static Resource[] getPluginSourceFiles(String pluginsDirPath)

getPluginJarFiles

public static Resource[] getPluginJarFiles(String pluginsDirPath)

getPluginDescriptors

public static Resource[] getPluginDescriptors(String basedir,
                                              String pluginsDirPath)

getPluginLibDirectories

public static Resource[] getPluginLibDirectories(String pluginsDirPath)

$getStaticMetaClass

protected groovy.lang.MetaClass $getStaticMetaClass()

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject

setMetaClass

public void setMetaClass(groovy.lang.MetaClass mc)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject

invokeMethod

public Object invokeMethod(String method,
                           Object arguments)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject

getProperty

public Object getProperty(String property)
Specified by:
getProperty in interface groovy.lang.GroovyObject

setProperty

public void setProperty(String property,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject


Copyright (c) 2005-2009 The Grails project