* Initialize Plugin Framework.
*/
public void initPluginFramework() {
CoreLogger.LOGGER.info("Initializing Plugin System");
// Determine which packages to expose to plugins
DefaultPackageScannerConfiguration scannerConfig = new DefaultPackageScannerConfiguration();
scannerConfig.setServletContext(servletContext);
// Expose current packages to the plugins
scannerConfig.getPackageIncludes().add("net.grinder.*");
scannerConfig.getPackageIncludes().add("net.grinder.statistics.*");
scannerConfig.getPackageIncludes().add("org.ngrinder.*");
scannerConfig.getPackageIncludes().add("org.ngrinder.service.*");
scannerConfig.getPackageIncludes().add("org.apache.*");
scannerConfig.getPackageIncludes().add("org.slf4j.*");
scannerConfig.getPackageIncludes().add("javax.servlet.*");
scannerConfig.getPackageIncludes().add("org.springframework.security.*");
// Determine which module descriptors, or extension points, to expose.
DefaultModuleDescriptorFactory modules = new DefaultModuleDescriptorFactory(new DefaultHostContainer());
initPluginDescriptor(modules, DEFAULT_PACKAGE_NAME);
// Determine which service objects to expose to plugins