Add implementation of PluginApi

- install
- get status
- enable
- disable
- reload

Change-Id: I62fdc63372918a7e63760f4ea49b203d7fcb244d
This commit is contained in:
David Pursehouse
2017-07-27 14:21:43 +01:00
parent 92cacc93eb
commit 5b002a187c
12 changed files with 268 additions and 14 deletions

View File

@@ -55,7 +55,11 @@ public class PluginsCollection
@Override
public PluginResource parse(TopLevelResource parent, IdString id)
throws ResourceNotFoundException {
Plugin p = loader.get(id.get());
return parse(id.get());
}
public PluginResource parse(String id) throws ResourceNotFoundException {
Plugin p = loader.get(id);
if (p == null) {
throw new ResourceNotFoundException(id);
}