com.springsource.bundlor.blint.internal
Class StandardBundleValidator
java.lang.Object
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
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 |
manifestCheckers
private final java.util.List<ManifestValidator> manifestCheckers
StandardBundleValidator
public StandardBundleValidator(java.util.List<ManifestValidator> manifestCheckers)
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