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#Versioninformation 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 classManifestInfo.VersionComparable 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 Tapply(ActorSystem system)static Tapply(ClassicActorSystemProvider system)booleancheckSameVersion(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.booleancheckSameVersion(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 ManifestInfocreateExtension(ExtendedActorSystem system)static booleanequals(java.lang.Object other)static ManifestInfoget(ActorSystem system)static ManifestInfoget(ClassicActorSystemProvider system)static inthashCode()static ManifestInfo$lookup()ExtendedActorSystemsystem()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=onit will throw anIllegalStateExceptionif the versions are not the same for all given artifacts.- Returns:
trueif 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
throwExceptionistrueit will throw anIllegalStateExceptionif the versions are not the same for all given artifacts.- Returns:
trueif versions are the same
-
-