|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.groovy.grails.plugins.DefaultPluginMetaManager
public class DefaultPluginMetaManager
Implements the PluginMetaManager interface by parsing a set of plugin.xml files from the given set of resources
| Field Summary |
|---|
| Fields inherited from interface org.codehaus.groovy.grails.plugins.PluginMetaManager |
|---|
BEAN_ID |
| Constructor Summary | |
|---|---|
DefaultPluginMetaManager()
|
|
DefaultPluginMetaManager(Resource[] pluginDescriptors)
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
GrailsPlugin |
getPluginForResource(String name)
Obtains a plug-in instance from the pluginManager for the given resource name |
String |
getPluginPathForResource(String resourceName)
Obtains the path to the plug-in for the given resource |
String[] |
getPluginResources(String pluginName)
Retrieves all the plugin resource names for the given plugin name |
String |
getPluginViewsPathForResource(String resourceName)
Obtains the path to the plug-in views directory for the given resource name |
void |
setGrailsApplication(GrailsApplication grailsApplication)
This method is called by the ApplicationContext that
loads the Grails application. |
void |
setPluginManager(GrailsPluginManager pluginManager)
Sets the plug-in manager on this instance |
void |
setResourceLoader(ResourceLoader resourceLoader)
|
void |
setResourcePattern(String resourcePattern)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultPluginMetaManager()
public DefaultPluginMetaManager(Resource[] pluginDescriptors)
| Method Detail |
|---|
public void setResourcePattern(String resourcePattern)
public void setGrailsApplication(GrailsApplication grailsApplication)
GrailsApplicationAwareThis method is called by the ApplicationContext that
loads the Grails application. The GrailsApplication instance that represents
the loaded Grails application is injected.
setGrailsApplication in interface GrailsApplicationAwaregrailsApplication - the GrailsApplication object that represents this Grails application
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanExceptionpublic void setResourceLoader(ResourceLoader resourceLoader)
setResourceLoader in interface ResourceLoaderAwarepublic String[] getPluginResources(String pluginName)
PluginMetaManager
getPluginResources in interface PluginMetaManagerpluginName - The plugin name
public GrailsPlugin getPluginForResource(String name)
PluginMetaManager
getPluginForResource in interface PluginMetaManagername - The name of the resource
public String getPluginPathForResource(String resourceName)
PluginMetaManager
getPluginPathForResource in interface PluginMetaManagerresourceName - The name of the resource
public String getPluginViewsPathForResource(String resourceName)
PluginMetaManager
getPluginViewsPathForResource in interface PluginMetaManagerresourceName - The resource name
public void setPluginManager(GrailsPluginManager pluginManager)
PluginManagerAware
setPluginManager in interface PluginManagerAwarepluginManager - The PluginManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||