Class GaxProperties


  • @InternalApi
    public class GaxProperties
    extends java.lang.Object
    Provides properties of the GAX library.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getGaxVersion()
      Returns the current version of GAX.
      static java.lang.String getJavaVersion()
      Returns the version of the running JVM
      static java.lang.String getLibraryVersion​(java.lang.Class<?> libraryClass)
      Returns the version of the library that the libraryClass belongs to
      static java.lang.String getLibraryVersion​(java.lang.Class<?> libraryClass, java.lang.String propertyName)
      Returns the version of the library that the libraryClass belongs to, or a property value in dependencies.properties resource file instead, if the version was not found.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getLibraryVersion

        public static java.lang.String getLibraryVersion​(java.lang.Class<?> libraryClass)
        Returns the version of the library that the libraryClass belongs to
      • getLibraryVersion

        public static java.lang.String getLibraryVersion​(java.lang.Class<?> libraryClass,
                                                         java.lang.String propertyName)
        Returns the version of the library that the libraryClass belongs to, or a property value in dependencies.properties resource file instead, if the version was not found. The method is doing I/O operations and is potentially inefficient, the values returned by this method are expected to be cached.
      • getJavaVersion

        public static java.lang.String getJavaVersion()
        Returns the version of the running JVM
      • getGaxVersion

        public static java.lang.String getGaxVersion()
        Returns the current version of GAX.