com.springsource.bundlor.blint
Interface BundleValidator

All Known Implementing Classes:
StandardBundleValidator

public interface BundleValidator

Main entry point for manifest validation. Clients provide an already transformed manifest or bundle and are returned a list of warnings against the contained contained within.

Concurrent Semantics
Implementations must be threadsafe.

Author:
Ben Hale

Method Summary
 java.util.List<Warning> validateBundle(java.lang.String inputPath)
          Check for warnings in the manifest of a bundle
 java.util.List<Warning> validateManifest(com.springsource.util.osgi.manifest.BundleManifest manifest)
          Check for warnings in a manifest directly
 java.util.List<Warning> validateManifest(com.springsource.util.parser.manifest.ManifestContents manifest)
          Check for warnings in a manifest directly
 

Method Detail

validateManifest

java.util.List<Warning> validateManifest(com.springsource.util.parser.manifest.ManifestContents manifest)
Check for warnings in a manifest directly

Parameters:
manifest - The manifest to check
Returns:
a list of warnings for this manifest

validateManifest

java.util.List<Warning> validateManifest(com.springsource.util.osgi.manifest.BundleManifest manifest)
Check for warnings in a manifest directly

Parameters:
manifest - The manifest to check
Returns:
a list of warnings for this manifest

validateBundle

java.util.List<Warning> validateBundle(java.lang.String inputPath)
Check for warnings in the manifest of a bundle

Parameters:
inputPath - The bundle whose manifest to check
Returns:
the list of warnings for this manifest