|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 java.lang.String |
logPrefix
|
protected java.lang.ClassLoader |
parentClassLoader
|
protected org.kuali.rice.core.config.Config |
parentConfig
|
protected java.lang.String |
pluginConfigPath
|
protected java.io.File |
sharedPluginDirectory
|
protected java.lang.String |
simplePluginName
|
Constructor Summary | |
---|---|
BasePluginLoader(java.lang.String simplePluginName,
java.io.File sharedPluginDirectory,
java.lang.ClassLoader parentClassLoader,
org.kuali.rice.core.config.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 java.lang.String |
getLogPrefix()
|
protected abstract java.net.URL |
getPluginConfigURL()
Template method that subclasses should implement to supply an appropriate URL to the plugin's configuration |
java.lang.String |
getPluginName()
|
protected javax.xml.namespace.QName |
getPluginName(PluginConfig pluginConfig)
|
protected java.lang.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(java.net.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(java.lang.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 java.lang.String simplePluginName
protected java.lang.String logPrefix
protected final java.lang.ClassLoader parentClassLoader
protected final org.kuali.rice.core.config.Config parentConfig
protected final java.io.File sharedPluginDirectory
protected java.lang.String pluginConfigPath
Constructor Detail |
---|
public BasePluginLoader(java.lang.String simplePluginName, java.io.File sharedPluginDirectory, java.lang.ClassLoader parentClassLoader, org.kuali.rice.core.config.Config parentConfig)
Method Detail |
---|
protected java.lang.String getLogPrefix()
public java.lang.String getPluginName()
getPluginName
in interface PluginLoader
public void setPluginConfigPath(java.lang.String pluginConfigPath)
setPluginConfigPath
in interface PluginLoader
protected java.lang.String getSimplePluginName()
protected abstract PluginClassLoader createPluginClassLoader() throws java.io.IOException
java.io.IOException
- if anything goes awryprotected abstract java.net.URL getPluginConfigURL() throws PluginException, java.io.IOException
java.io.IOException
- if anything goes awry
PluginException
public Plugin load() throws java.lang.Exception
load
in interface PluginLoader
java.lang.Exception
public boolean isRemoved()
PluginLoader
isRemoved
in interface PluginLoader
protected Plugin loadWithinContextClassLoader(PluginClassLoader classLoader) throws PluginException, java.io.IOException
PluginException
java.io.IOException
protected void installResourceLoader(Plugin plugin)
protected void installPluginListeners(Plugin plugin)
protected void configureExtraClasspath(PluginClassLoader classLoader, PluginConfig config) throws java.net.MalformedURLException
java.net.MalformedURLException
protected javax.xml.namespace.QName getPluginName(PluginConfig pluginConfig)
protected PluginConfig loadPluginConfig(java.net.URL url)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |