Class ManifestFileVar
The format for this var is
This variable resolver requires that a ManifestFile object be made available by either:
- Classpath/default manifest discovery when using the no-arg constructor.
- Constructing the var via
create(Supplier)(per-instance).
Example:
Since this is a SimpleVar, any variables contained in the result will be recursively resolved.
Likewise, if the arguments contain any variables, those will be resolved before they are passed to this var.
See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ManifestFileVarcreate(Supplier<ManifestFile> supplier) protected booleanisStable()Manifest entries are immutable for the lifetime of the classpath.resolve(VarResolverSession session, String key) The interface that needs to be implemented for subclasses ofSimpleVar.Methods inherited from class org.apache.juneau.commons.svl.DefaultingVar
doResolveMethods inherited from class org.apache.juneau.commons.svl.Var
allowNested, allowRecurse, canResolve, getName
-
Field Details
-
NAME
The name of this variable.- See Also:
-
-
Constructor Details
-
ManifestFileVar
public ManifestFileVar()Constructor.
-
-
Method Details
-
create
Creates aManifestFileVarbound to a per-instanceSupplierofManifestFile.The supplier is invoked on every resolve.
- Parameters:
supplier- The supplier ofManifestFilefor this var instance. Must not benull .- Returns:
- A new
ManifestFileVarinstance backed by the supplier.
-
resolve
Description copied from class:VarThe interface that needs to be implemented for subclasses ofSimpleVar. -
isStable
Manifest entries are immutable for the lifetime of the classpath. This var opts in to compile-time stable-value folding.
-