Interface PackageScannerConfiguration

All Known Implementing Classes:
DefaultPackageScannerConfiguration

public interface PackageScannerConfiguration
Contains configuration for the package scanning algorithm that scans your classpath to determine which packages and versions to export to OSGi. Jar and package includes/excludes, and packages for the package version map can either be simple names or wildcard patterns, where the "*" character will match any character.

Includes and excludes are matched so that only includes are, well, included, but if you need to filter a few out of that set, the exclude patterns will be removed.

  • Method Details

    • getJarIncludes

      List<String> getJarIncludes()
      Returns:
      The jar patterns to include
    • getJarExcludes

      List<String> getJarExcludes()
      Returns:
      The jar patterns to exclude
    • getPackageIncludes

      List<String> getPackageIncludes()
      Returns:
      The package patterns to include
    • getPackageExcludes

      List<String> getPackageExcludes()
      Returns:
      The package patterns to exclude
    • getPackageVersions

      Map<String,String> getPackageVersions()
      Returns:
      A map of package patterns and their versions
    • getCurrentHostVersion

      String getCurrentHostVersion()
      Returns:
      The current host application version number. Used as a caching key for scanned data.
      Since:
      2.2.0
    • getServletContext

      javax.servlet.ServletContext getServletContext()
      Returns:
      The servlet context to use to scan for jars, in case the classloader scanning fails
    • getOsgiPublicPackages

      Set<String> getOsgiPublicPackages()
    • getOsgiPublicPackagesExcludes

      Set<String> getOsgiPublicPackagesExcludes()
    • getOsgiDeprecatedPackages

      Set<String> getOsgiDeprecatedPackages()
      Since:
      7.3
    • treatDeprecatedPackagesAsPublic

      default boolean treatDeprecatedPackagesAsPublic()
      Since:
      7.3
    • getApplicationBundledInternalPlugins

      Set<String> getApplicationBundledInternalPlugins()