Package com.atlassian.plugin.osgi.container.impl

Examples of com.atlassian.plugin.osgi.container.impl.DefaultPackageScannerConfiguration


   * 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
View Full Code Here

TOP

Related Classes of com.atlassian.plugin.osgi.container.impl.DefaultPackageScannerConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.