|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.dir.master.contexts.PluginManager
public class PluginManager
Manages the storage and installation of service plugins.
| Field Summary | |
|---|---|
static java.lang.String |
MANIFEST_ENTRYPOINT
JAR Property for Plugin main class |
static java.lang.String |
PLUGINS_DIRECTORY_NAME
Plugin directory name |
| Constructor Summary | |
|---|---|
PluginManager()
|
|
| Method Summary | |
|---|---|
static Plugin |
activate(java.net.URL url)
Loads and activates a plugin from its URL. |
static void |
deploy(java.io.InputStream stream)
Deploys a new plugin for the service, activating it. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String MANIFEST_ENTRYPOINT
public static final java.lang.String PLUGINS_DIRECTORY_NAME
| Constructor Detail |
|---|
public PluginManager()
| Method Detail |
|---|
public static void deploy(java.io.InputStream stream)
throws java.lang.Exception
stream - a stream open over the plugin jar.
java.lang.Exception - if the plugin could not be stored or activated.
public static Plugin activate(java.net.URL url)
throws java.lang.Exception
url - the URL.
java.lang.Exception - if the plugin could not be loaded.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||