public interface

PackageScannerConfiguration

com.atlassian.plugin.osgi.container.PackageScannerConfiguration
Known Indirect Subclasses

Class Overview

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.

Public Methods

public String getCurrentHostVersion ()

Returns
  • The current host application version number. Used as a caching key for scanned data.

public List<String> getJarExcludes ()

Returns
  • The jar patterns to exclude

public List<String> getJarIncludes ()

Returns
  • The jar patterns to include

public List<String> getPackageExcludes ()

Returns
  • The package patterns to exclude

public List<String> getPackageIncludes ()

Returns
  • The package patterns to include

public Map<StringString> getPackageVersions ()

Returns
  • A map of package patterns and their versions

public ServletContext getServletContext ()

Returns
  • The servlet context to use to scan for jars, in case the classloader scanning fails