org.kuali.rice.kew.plugin
Class PluginUtils

java.lang.Object
  extended by org.kuali.rice.kew.plugin.PluginUtils

public final class PluginUtils
extends Object

Various plugin utilities.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Nested Class Summary
static class PluginUtils.PluginDirectoryFilter
           
static class PluginUtils.PluginZipFileFilter
           
 
Field Summary
static long DEFAULT_MAX_WAIT
           
static long DEFAULT_SAFE_TIME
           
static long INFINITE_MAX_WAIT
           
private static FilenameFilter JAR_FILES_FILTER
           
private static org.apache.log4j.Logger LOG
           
private static String SHARED_DIR
           
private static FileFilter SHARED_DIR_FILTER
           
 
Constructor Summary
private PluginUtils()
           
 
Method Summary
(package private) static File[] findJars(File libDir)
           
static File findSharedDirectory(List pluginDirectories)
           
static String getLogPrefix(Plugin plugin)
           
static String getLogPrefix(QName pluginName)
           
static PluginRegistry getPluginRegistry()
           
static void installPluginListeners(Plugin plugin)
           
static void installResourceLoader(Plugin plugin)
           
static void validatePluginDirectory(File directory)
           
static void validatePluginZipFile(File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final org.apache.log4j.Logger LOG

SHARED_DIR

private static final String SHARED_DIR
See Also:
Constant Field Values

INFINITE_MAX_WAIT

public static final long INFINITE_MAX_WAIT
See Also:
Constant Field Values

DEFAULT_MAX_WAIT

public static final long DEFAULT_MAX_WAIT
See Also:
Constant Field Values

DEFAULT_SAFE_TIME

public static final long DEFAULT_SAFE_TIME
See Also:
Constant Field Values

JAR_FILES_FILTER

private static final FilenameFilter JAR_FILES_FILTER

SHARED_DIR_FILTER

private static final FileFilter SHARED_DIR_FILTER
Constructor Detail

PluginUtils

private PluginUtils()
Method Detail

getLogPrefix

public static String getLogPrefix(Plugin plugin)

getLogPrefix

public static String getLogPrefix(QName pluginName)

findJars

static File[] findJars(File libDir)

findSharedDirectory

public static File findSharedDirectory(List pluginDirectories)

validatePluginZipFile

public static void validatePluginZipFile(File file)

validatePluginDirectory

public static void validatePluginDirectory(File directory)

getPluginRegistry

public static PluginRegistry getPluginRegistry()

installResourceLoader

public static void installResourceLoader(Plugin plugin)

installPluginListeners

public static void installPluginListeners(Plugin plugin)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.