com.atlassian.plugin.osgi.container
Interface PackageScannerConfiguration

All Known Implementing Classes:
DefaultPackageScannerConfiguration, SpringAwarePackageScannerConfiguration

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 Summary
 String getCurrentHostVersion()
           
 List<String> getJarExcludes()
           
 List<String> getJarIncludes()
           
 List<String> getPackageExcludes()
           
 List<String> getPackageIncludes()
           
 Map<String,String> getPackageVersions()
           
 javax.servlet.ServletContext getServletContext()
           
 

Method Detail

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


Copyright © 2010 Atlassian. All Rights Reserved.