INNER CODE UNIT · Java

getInstance

SoftInstigate/restheart · commons/src/main/java/org/restheart/Version.java:52

    public static Version getInstance() {
        return VersionHolder.INSTANCE;
    }

    private final String versionNumber;
    private final Instant buildTime;

    private Version() {
        this.versionNumber = Version.class.getPackage().getImplementationVersion();
        this.buildTime = extractBuildTime();
    }

    /**
     * the RESTHEart version is read from the JAR's MANIFEST.MF file, which is
     * automatically generated by the Maven build process
     *
     * @return an Optional containing the version of RESTHeart, or empty if it is not packaged
     */

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…