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.

Summary

Public Methods
abstract String getCurrentHostVersion()
abstract List<String> getJarExcludes()
abstract List<String> getJarIncludes()
abstract List<String> getPackageExcludes()
abstract List<String> getPackageIncludes()
abstract Map<StringString> getPackageVersions()
abstract ServletContext getServletContext()

Public Methods

public abstract String getCurrentHostVersion ()

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

public abstract List<String> getJarExcludes ()

Returns
  • The jar patterns to exclude

public abstract List<String> getJarIncludes ()

Returns
  • The jar patterns to include

public abstract List<String> getPackageExcludes ()

Returns
  • The package patterns to exclude

public abstract List<String> getPackageIncludes ()

Returns
  • The package patterns to include

public abstract Map<StringString> getPackageVersions ()

Returns
  • A map of package patterns and their versions

public abstract ServletContext getServletContext ()

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