Class ManifestInfo

java.lang.Object
org.apache.pekko.util.ManifestInfo
All Implemented Interfaces:
Extension

public final class ManifestInfo extends Object implements 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.
  • Constructor Details

  • Method Details

    • 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(Object other)
    • system

      public ExtendedActorSystem system()
    • versions

      public scala.collection.immutable.Map<String,ManifestInfo.Version> 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=on it will throw an IllegalStateException if the versions are not the same for all given artifacts.

      Returns:
      true if 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 throwException is true it will throw an IllegalStateException if the versions are not the same for all given artifacts.

      Returns:
      true if versions are the same