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, setPluginConfigPathpublic ZipFilePluginLoader(File pluginZipFile, File sharedPluginDirectory, ClassLoader parentClassLoader, Config parentConfig)
public boolean isModified()
protected boolean isZipFileStillBeingModified()
public boolean isRemoved()
PluginLoaderisRemoved in interface PluginLoaderisRemoved in class BasePluginLoaderpublic Plugin load() throws Exception
BasePluginLoaderload in interface PluginLoaderload in class BasePluginLoaderExceptionprotected File determineExtractionDirectory(String pluginName, File pluginZipFile)
protected void extractPluginFiles() throws Exception
Exceptionpublic boolean isLoadFailed()
protected boolean isExtractNeeded()
protected void updateLastModified()
protected PluginClassLoader createPluginClassLoader() throws MalformedURLException
BasePluginLoadercreatePluginClassLoader in class BasePluginLoaderMalformedURLExceptionprotected URL getPluginConfigURL() throws PluginException, MalformedURLException
BasePluginLoadergetPluginConfigURL in class BasePluginLoaderPluginExceptionMalformedURLExceptionCopyright © 2005–2016 The Kuali Foundation. All rights reserved.