com.springsource.bundlor.blint.internal
Class StandardBundleValidator

java.lang.Object
  extended by com.springsource.bundlor.blint.internal.StandardBundleValidator
All Implemented Interfaces:
BundleValidator

public class StandardBundleValidator
extends java.lang.Object
implements BundleValidator

Standard Implementation of BundleValidator.

Concurrent Semantics
Threadsafe

Author:
Ben Hale

Field Summary
private  java.util.List<ManifestValidator> manifestCheckers
           
 
Constructor Summary
StandardBundleValidator(java.util.List<ManifestValidator> manifestCheckers)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

manifestCheckers

private final java.util.List<ManifestValidator> manifestCheckers
Constructor Detail

StandardBundleValidator

public StandardBundleValidator(java.util.List<ManifestValidator> manifestCheckers)
Method Detail

validateBundle

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

Specified by:
validateBundle in interface BundleValidator
Parameters:
inputPath - The bundle whose manifest to check
Returns:
the list of warnings for this manifest

validateManifest

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

Specified by:
validateManifest in interface BundleValidator
Parameters:
manifest - The manifest to check
Returns:
a list of warnings for this manifest

validateManifest

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

Specified by:
validateManifest in interface BundleValidator
Parameters:
manifest - The manifest to check
Returns:
a list of warnings for this manifest