implement WebResourceLoaders for loading plugin web resources

This commit is contained in:
Sebastian Sdorra
2014-08-27 21:01:05 +02:00
parent ad686cb787
commit a3be1c775b
15 changed files with 1029 additions and 79 deletions

View File

@@ -491,7 +491,8 @@ public final class PluginProcessor
throws IOException
{
PluginWrapper wrapper = null;
Path descriptor = smp.getPath().resolve(PluginConstants.FILE_DESCRIPTOR);
Path directory = smp.getPath();
Path descriptor = directory.resolve(PluginConstants.FILE_DESCRIPTOR);
if (Files.exists(descriptor))
{
@@ -499,7 +500,8 @@ public final class PluginProcessor
Plugin plugin = createPlugin(cl, descriptor);
wrapper = new PluginWrapper(plugin, cl, smp.getPath());
wrapper = new PluginWrapper(plugin, cl,
new PathWebResourceLoader(directory), directory);
}
else
{