|
||||||||||
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 org.kuali.rice.kew.plugin.ZipFilePluginLoader
public class ZipFilePluginLoader
Loads a plugin from a zip file on the file system.
Field Summary |
---|
Fields inherited from class org.kuali.rice.kew.plugin.BasePluginLoader |
---|
logPrefix, parentClassLoader, parentConfig, pluginConfigPath, sharedPluginDirectory, simplePluginName |
Constructor Summary | |
---|---|
ZipFilePluginLoader(File pluginZipFile,
File sharedPluginDirectory,
ClassLoader parentClassLoader,
Config parentConfig)
|
Method Summary | |
---|---|
protected PluginClassLoader |
createPluginClassLoader()
Template method that subclasses should implement to supply an appropriate plugin ClassLoader |
protected File |
determineExtractionDirectory(String pluginName,
File pluginZipFile)
|
protected void |
extractPluginFiles()
Extracts the plugin files if necessary. |
protected URL |
getPluginConfigURL()
Template method that subclasses should implement to supply an appropriate URL to the plugin's configuration |
protected boolean |
isExtractNeeded()
An extract is required if the plugin has been modified or the last modified date of the zip file is later than the last modified date of the extraction directory. |
boolean |
isLoadFailed()
|
boolean |
isModified()
|
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). |
protected boolean |
isZipFileStillBeingModified()
|
Plugin |
load()
Loads and creates the Plugin. |
protected void |
updateLastModified()
|
Methods inherited from class org.kuali.rice.kew.plugin.BasePluginLoader |
---|
configureExtraClasspath, getLogPrefix, getPluginName, getPluginName, getSimplePluginName, installPluginListeners, installResourceLoader, loadPluginConfig, loadWithinContextClassLoader, setPluginConfigPath |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ZipFilePluginLoader(File pluginZipFile, File sharedPluginDirectory, ClassLoader parentClassLoader, Config parentConfig)
Method Detail |
---|
public boolean isModified()
protected boolean isZipFileStillBeingModified()
public boolean isRemoved()
PluginLoader
isRemoved
in interface PluginLoader
isRemoved
in class BasePluginLoader
public Plugin load() throws Exception
BasePluginLoader
load
in interface PluginLoader
load
in class BasePluginLoader
Exception
protected File determineExtractionDirectory(String pluginName, File pluginZipFile)
protected void extractPluginFiles() throws Exception
Exception
public boolean isLoadFailed()
protected boolean isExtractNeeded()
protected void updateLastModified()
protected PluginClassLoader createPluginClassLoader() throws MalformedURLException
BasePluginLoader
createPluginClassLoader
in class BasePluginLoader
MalformedURLException
protected URL getPluginConfigURL() throws PluginException, MalformedURLException
BasePluginLoader
getPluginConfigURL
in class BasePluginLoader
PluginException
MalformedURLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |