|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.web.PluginStarter
public class PluginStarter
Start/stop/delete plugins that are already installed Get properties of installed plugins Get or change settings in plugins.config
Field Summary | |
---|---|
protected RouterContext |
_context
|
(package private) static java.lang.String |
ENABLED
|
(package private) static java.lang.String |
PREFIX
|
Constructor Summary | |
---|---|
PluginStarter(RouterContext ctx)
|
Method Summary | |
---|---|
static void |
addPath(java.net.URL u)
http://jimlife.wordpress.com/2007/12/19/java-adding-new-classpath-at-runtime/ |
(package private) static boolean |
deletePlugin(RouterContext ctx,
java.lang.String appName)
|
static java.util.Map<java.lang.String,java.lang.String> |
getPluginKeys(I2PAppContext ctx)
The signing keys from all the plugins |
static java.util.List<java.lang.String> |
getPlugins()
all installed plugins whether enabled or not |
static boolean |
isPluginRunning(java.lang.String pluginName,
RouterContext ctx)
|
static java.util.Properties |
pluginProperties()
plugins.config this auto-adds a propery for every dir in the plugin directory |
static java.util.Properties |
pluginProperties(I2PAppContext ctx,
java.lang.String appName)
plugin.config |
(package private) static boolean |
pluginsEnabled(I2PAppContext ctx)
|
void |
run()
|
(package private) static boolean |
startPlugin(RouterContext ctx,
java.lang.String appName)
|
(package private) static void |
startPlugins(RouterContext ctx)
this shouldn't throw anything |
(package private) static boolean |
stopPlugin(RouterContext ctx,
java.lang.String appName)
|
static void |
storePluginProperties(java.util.Properties props)
plugins.config |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected RouterContext _context
static final java.lang.String PREFIX
static final java.lang.String ENABLED
Constructor Detail |
---|
public PluginStarter(RouterContext ctx)
Method Detail |
---|
static boolean pluginsEnabled(I2PAppContext ctx)
public void run()
run
in interface java.lang.Runnable
static void startPlugins(RouterContext ctx)
static boolean startPlugin(RouterContext ctx, java.lang.String appName) throws java.lang.Exception
just
- about anything, caller would be wise to catch Throwable
java.lang.Exception
static boolean stopPlugin(RouterContext ctx, java.lang.String appName) throws java.lang.Exception
just
- about anything, caller would be wise to catch Throwable
java.lang.Exception
static boolean deletePlugin(RouterContext ctx, java.lang.String appName) throws java.lang.Exception
java.lang.Exception
public static java.util.Properties pluginProperties(I2PAppContext ctx, java.lang.String appName)
public static java.util.Properties pluginProperties()
public static java.util.List<java.lang.String> getPlugins()
public static java.util.Map<java.lang.String,java.lang.String> getPluginKeys(I2PAppContext ctx)
public static void storePluginProperties(java.util.Properties props)
public static boolean isPluginRunning(java.lang.String pluginName, RouterContext ctx)
public static void addPath(java.net.URL u) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |