Groovy Documentation

org.grails.plugin.platform.util
[Groovy] Class PluginUtils

java.lang.Object
  org.grails.plugin.platform.util.PluginUtils

class PluginUtils

Constructor Summary
PluginUtils()

 
Method Summary
static java.lang.Object findAppPlugin(java.lang.Object applicationContext)

Find the GrailsPlugin instance for this app, in the case you are run-app'ing a plugin

static java.lang.String getNameOfDefiningPlugin(java.lang.Object applicationContext, java.lang.Object object)

Work out which Grails plugin (if any) defined the class of the object supplied

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Constructor Detail

PluginUtils

PluginUtils()


 
Method Detail

findAppPlugin

static java.lang.Object findAppPlugin(java.lang.Object applicationContext)
Find the GrailsPlugin instance for this app, in the case you are run-app'ing a plugin
Returns:
the GrailsPlugin of the current plugin being run, or null if it is not a plugin


getNameOfDefiningPlugin

static java.lang.String getNameOfDefiningPlugin(java.lang.Object applicationContext, java.lang.Object object)
Work out which Grails plugin (if any) defined the class of the object supplied


 

Groovy Documentation