Class AbstractBundleValidator
java.lang.Object
com.yahoo.vespa.model.application.validation.AbstractBundleValidator
- All Implemented Interfaces:
Validator
- Direct Known Subclasses:
BundleValidator,PublicApiBundleValidator
Base class for OSGi bundle validator.
- Author:
- bjorncs
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final Stringprotected final voidforEachImportPackage(Manifest mf, Consumer<String> consumer) protected final voidforEachPomXmlElement(Document pom, String xpath, Consumer<Element> consumer) getPomXmlContent(BiConsumer<String, Throwable> context, com.yahoo.config.application.api.DeployLogger logger, JarFile jar) protected final voidlog(DeployState state, Level level, String fmt, Object... args) final voidvalidate(Validation.Context context) Validates the input Vespa model; illegal configuration should be reported through the context, while other problems (system error, insufficient quota, etc.) should be thrown.protected abstract voidvalidateManifest(AbstractBundleValidator.JarContext context, JarFile jar, Manifest mf) protected abstract voidvalidatePomXml(AbstractBundleValidator.JarContext context, JarFile jar, Document pom)
-
Constructor Details
-
AbstractBundleValidator
public AbstractBundleValidator()
-
-
Method Details
-
validateManifest
protected abstract void validateManifest(AbstractBundleValidator.JarContext context, JarFile jar, Manifest mf) -
validatePomXml
protected abstract void validatePomXml(AbstractBundleValidator.JarContext context, JarFile jar, Document pom) -
validate
Description copied from interface:ValidatorValidates the input Vespa model; illegal configuration should be reported through the context, while other problems (system error, insufficient quota, etc.) should be thrown. -
filename
-
forEachPomXmlElement
protected final void forEachPomXmlElement(Document pom, String xpath, Consumer<Element> consumer) throws XPathExpressionException - Throws:
XPathExpressionException
-
forEachImportPackage
-
log
-
getPomXmlContent
-