org.gcube.data.tm.plugin
Class PluginManager

java.lang.Object
  extended by org.gcube.data.tm.plugin.PluginManager

public class PluginManager
extends Object

Manages service plugins.

Author:
Fabio Simeoni

Constructor Summary
PluginManager()
          Creates a new instance, installing all the plugins found on the classpath.
 
Method Summary
 Map<String,org.gcube.data.tmf.api.Plugin> plugins()
          Returns the installed plugins, indexed by name.
 void register(org.gcube.data.tmf.api.Plugin plugin)
           
 void stop()
          Stops all plugins.
 void stop(org.gcube.data.tmf.api.Plugin plugin)
          Stops a given plugin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginManager

public PluginManager()
Creates a new instance, installing all the plugins found on the classpath.

Method Detail

register

public void register(org.gcube.data.tmf.api.Plugin plugin)

plugins

public Map<String,org.gcube.data.tmf.api.Plugin> plugins()
Returns the installed plugins, indexed by name.

Returns:
the plugins

stop

public void stop()
Stops all plugins.


stop

public void stop(org.gcube.data.tmf.api.Plugin plugin)
Stops a given plugin

Parameters:
plugin - the plugin


Copyright © 2013. All Rights Reserved.