Package org.apache.pekko.util
Class ManifestInfo
java.lang.Object
org.apache.pekko.util.ManifestInfo
- All Implemented Interfaces:
Extension
Utility that extracts
ManifestInfo#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 ClassesModifier and TypeClassDescriptionstatic final classComparable version information -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Tapply(ActorSystem system) static Tapply(ClassicActorSystemProvider system) booleancheckSameVersion(String productName, scala.collection.immutable.Seq<String> dependencies, boolean logWarning) Verify that the version is the same for all given artifacts.booleancheckSameVersion(String productName, scala.collection.immutable.Seq<String> dependencies, boolean logWarning, boolean throwException) Verify that the version is the same for all given artifacts.static ManifestInfocreateExtension(ExtendedActorSystem system) static final booleanstatic ManifestInfoget(ActorSystem system) static ManifestInfoget(ClassicActorSystemProvider system) static final inthashCode()static ManifestInfo$lookup()system()scala.collection.immutable.Map<String,ManifestInfo.Version> versions()Versions of artifacts from known vendors.
-
Constructor Details
-
ManifestInfo
-
-
Method Details
-
get
-
get
-
lookup
-
createExtension
-
apply
-
apply
-
hashCode
public static final int hashCode() -
equals
-
system
-
versions
Versions of artifacts from known vendors. -
checkSameVersion
public boolean checkSameVersion(String productName, scala.collection.immutable.Seq<String> dependencies, boolean logWarning) Verify that the version is the same for all given artifacts.If configuration
pekko.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(String productName, scala.collection.immutable.Seq<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
-