public class ZipFilePluginLoader extends BasePluginLoader
logPrefix, parentClassLoader, parentConfig, pluginConfigPath, sharedPluginDirectory, simplePluginName
Constructor and Description |
---|
ZipFilePluginLoader(File pluginZipFile,
File sharedPluginDirectory,
ClassLoader parentClassLoader,
Config parentConfig) |
Modifier and Type | Method and Description |
---|---|
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() |
configureExtraClasspath, getLogPrefix, getPluginName, getPluginName, getSimplePluginName, installPluginListeners, installResourceLoader, loadPluginConfig, loadWithinContextClassLoader, setPluginConfigPath
public ZipFilePluginLoader(File pluginZipFile, File sharedPluginDirectory, ClassLoader parentClassLoader, Config parentConfig)
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
Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.