Class AbstractBundleValidator
- java.lang.Object
-
- com.yahoo.vespa.model.application.validation.Validator
-
- com.yahoo.vespa.model.application.validation.AbstractBundleValidator
-
- Direct Known Subclasses:
BundleValidator
public abstract class AbstractBundleValidator extends Validator
Base class for OSGi bundle validator. Uses BND library for some of the validation.- Author:
- bjorncs
-
-
Constructor Summary
Constructors Constructor Description AbstractBundleValidator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected String
filename(JarFile jarFile)
protected void
forEachImportPackage(Manifest mf, BiConsumer<String,aQute.bnd.version.VersionRange> consumer)
protected void
forEachPomXmlElement(Document pom, String xpath, Consumer<Element> consumer)
protected void
log(DeployState state, Level level, String fmt, Object... args)
void
validate(VespaModel model, DeployState state)
Validates the input vespamodelprotected abstract void
validateManifest(DeployState state, JarFile jar, Manifest mf)
protected abstract void
validatePomXml(DeployState state, JarFile jar, Document pom)
-
-
-
Method Detail
-
validateManifest
protected abstract void validateManifest(DeployState state, JarFile jar, Manifest mf)
-
validatePomXml
protected abstract void validatePomXml(DeployState state, JarFile jar, Document pom)
-
validate
public final void validate(VespaModel model, DeployState state)
Description copied from class:Validator
Validates the input vespamodel- Specified by:
validate
in classValidator
- Parameters:
model
- a VespaModel objectstate
- theDeployState
built from building the model
-
forEachPomXmlElement
protected final void forEachPomXmlElement(Document pom, String xpath, Consumer<Element> consumer) throws XPathExpressionException
- Throws:
XPathExpressionException
-
forEachImportPackage
protected final void forEachImportPackage(Manifest mf, BiConsumer<String,aQute.bnd.version.VersionRange> consumer)
-
log
protected final void log(DeployState state, Level level, String fmt, Object... args)
-
-