package org.commonjava.aprox.stats;

import javax.enterprise.context.ApplicationScoped;

import org.commonjava.web.json.ser.JsonAdapters;

@ApplicationScoped
@JsonAdapters( AProxVersioningAdapter.class )
public class AProxVersioning
{
    
    private static final String APP_VERSION = "@project.version@";
    private static final String APP_BUILDER = "@user.name@";
    private static final String APP_COMMIT_ID = "@buildNumber@";
    private static final String APP_TIMESTAMP = "@timestamp@";
    
    public String getVersion()
    {
        return APP_VERSION;
    }

    public String getBuilder()
    {
        return APP_BUILDER;
    }

    public String getCommitId()
    {
        return APP_COMMIT_ID;
    }
    
    public String getTimestamp()
    {
        return APP_TIMESTAMP;
    }

}

@@ -47,44 +47,24 @@
 vax.
-enterprise.context.ApplicationScoped
+inject.Singleton
 ;%0A%0Ai
@@ -117,25 +117,17 @@
 ;%0A%0A@
-ApplicationScoped
+Singleton
 %0A@Js

make versioning @Singleton to prevent proxying