throws Exception
{
ServletContext context = getServletContext();
SimplePluginFinder finder = new SimplePluginFinder();
Set<String> pluginStringSet = context.getResourcePaths("/plugins/");
for (String pluginString : pluginStringSet)
{
if (pluginString.endsWith(".jar"))
{
URL pluginUrl = context.getResource(pluginString);
finder.addUrl(pluginUrl);
}
}
PluginContainerConfiguration config = new PluginContainerConfiguration();
config.setPluginFinder(finder);