| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.kew.plugin.BasePluginLoader
public abstract class BasePluginLoader
Abstract base PluginLoader implementation. Delegates to template methods to obtain plugin ClassLoader and plugin config file URL, then load the config under the plugin ClassLoader, and constructs a Plugin object.
| Field Summary | |
|---|---|
| protected  String | logPrefix | 
| protected  ClassLoader | parentClassLoader | 
| protected  Config | parentConfig | 
| protected  String | pluginConfigPath | 
| protected  File | sharedPluginDirectory | 
| protected  String | simplePluginName | 
| Constructor Summary | |
|---|---|
| BasePluginLoader(String simplePluginName,
                                 File sharedPluginDirectory,
                                 ClassLoader parentClassLoader,
                                 Config parentConfig) | |
| Method Summary | |
|---|---|
| protected  void | configureExtraClasspath(PluginClassLoader classLoader,
                                               PluginConfig config) | 
| protected abstract  PluginClassLoader | createPluginClassLoader()Template method that subclasses should implement to supply an appropriate plugin ClassLoader | 
| protected  String | getLogPrefix() | 
| protected abstract  URL | getPluginConfigURL()Template method that subclasses should implement to supply an appropriate URL to the plugin's configuration | 
|  String | getPluginName() | 
| protected  QName | getPluginName(PluginConfig pluginConfig) | 
| protected  String | getSimplePluginName() | 
| protected  void | installPluginListeners(Plugin plugin) | 
| protected  void | installResourceLoader(Plugin plugin) | 
|  boolean | isRemoved()Returns true if the Plugin loaded by this loader has been removed (for example, it was deleted from the file system which should result in the plugin being undeployed). | 
|  Plugin | load()Loads and creates the Plugin. | 
| protected  PluginConfig | loadPluginConfig(URL url) | 
| protected  Plugin | loadWithinContextClassLoader(PluginClassLoader classLoader)Executes loading of the plugin within the current context classloader set to the Plugin's classloader. | 
|  void | setPluginConfigPath(String pluginConfigPath) | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface org.kuali.rice.kew.plugin.Modifiable | 
|---|
| isModified | 
| Field Detail | 
|---|
protected final String simplePluginName
protected String logPrefix
protected final ClassLoader parentClassLoader
protected final Config parentConfig
protected final File sharedPluginDirectory
protected String pluginConfigPath
| Constructor Detail | 
|---|
public BasePluginLoader(String simplePluginName,
                        File sharedPluginDirectory,
                        ClassLoader parentClassLoader,
                        Config parentConfig)
| Method Detail | 
|---|
protected String getLogPrefix()
public String getPluginName()
getPluginName in interface PluginLoaderpublic void setPluginConfigPath(String pluginConfigPath)
setPluginConfigPath in interface PluginLoaderprotected String getSimplePluginName()
protected abstract PluginClassLoader createPluginClassLoader()
                                                      throws IOException
IOException - if anything goes awry
protected abstract URL getPluginConfigURL()
                                   throws PluginException,
                                          IOException
IOException - if anything goes awry
PluginException
public Plugin load()
            throws Exception
load in interface PluginLoaderExceptionpublic boolean isRemoved()
PluginLoader
isRemoved in interface PluginLoader
protected Plugin loadWithinContextClassLoader(PluginClassLoader classLoader)
                                       throws PluginException,
                                              IOException
PluginException
IOExceptionprotected void installResourceLoader(Plugin plugin)
protected void installPluginListeners(Plugin plugin)
protected void configureExtraClasspath(PluginClassLoader classLoader,
                                       PluginConfig config)
                                throws MalformedURLException
MalformedURLExceptionprotected QName getPluginName(PluginConfig pluginConfig)
protected PluginConfig loadPluginConfig(URL url)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||