Package akka.util
Class ManifestInfo
- java.lang.Object
-
- akka.util.ManifestInfo
-
- All Implemented Interfaces:
Extension
public final class ManifestInfo extends java.lang.Object implements Extension
Utility that extractsManifestInfo#Version
information from META-INF/MANIFEST.MF in jar files on the classpath. Note that versions can only be found in ordinary jar files, for example not in "fat jars' assembled from many jar files.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ManifestInfo.Version
Comparable version information
-
Constructor Summary
Constructors Constructor Description ManifestInfo(ExtendedActorSystem system)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static T
apply(ActorSystem system)
static T
apply(ClassicActorSystemProvider system)
boolean
checkSameVersion(java.lang.String productName, scala.collection.immutable.Seq<java.lang.String> dependencies, boolean logWarning)
Verify that the version is the same for all given artifacts.boolean
checkSameVersion(java.lang.String productName, scala.collection.immutable.Seq<java.lang.String> dependencies, boolean logWarning, boolean throwException)
Verify that the version is the same for all given artifacts.static ManifestInfo
createExtension(ExtendedActorSystem system)
static boolean
equals(java.lang.Object other)
static ManifestInfo
get(ActorSystem system)
static ManifestInfo
get(ClassicActorSystemProvider system)
static int
hashCode()
static ManifestInfo$
lookup()
ExtendedActorSystem
system()
scala.collection.immutable.Map<java.lang.String,ManifestInfo.Version>
versions()
Versions of artifacts from known vendors.
-
-
-
Constructor Detail
-
ManifestInfo
public ManifestInfo(ExtendedActorSystem system)
-
-
Method Detail
-
get
public static ManifestInfo get(ActorSystem system)
-
get
public static ManifestInfo get(ClassicActorSystemProvider system)
-
lookup
public static ManifestInfo$ lookup()
-
createExtension
public static ManifestInfo createExtension(ExtendedActorSystem system)
-
apply
public static T apply(ActorSystem system)
-
apply
public static T apply(ClassicActorSystemProvider system)
-
hashCode
public static final int hashCode()
-
equals
public static final boolean equals(java.lang.Object other)
-
system
public ExtendedActorSystem system()
-
versions
public scala.collection.immutable.Map<java.lang.String,ManifestInfo.Version> versions()
Versions of artifacts from known vendors.
-
checkSameVersion
public boolean checkSameVersion(java.lang.String productName, scala.collection.immutable.Seq<java.lang.String> dependencies, boolean logWarning)
Verify that the version is the same for all given artifacts.If configuration
akka.fail-mixed-versions=on
it will throw anIllegalStateException
if the versions are not the same for all given artifacts.- Returns:
true
if versions are the same
-
checkSameVersion
public boolean checkSameVersion(java.lang.String productName, scala.collection.immutable.Seq<java.lang.String> dependencies, boolean logWarning, boolean throwException)
Verify that the version is the same for all given artifacts.If
throwException
istrue
it will throw anIllegalStateException
if the versions are not the same for all given artifacts.- Returns:
true
if versions are the same
-
-