Package org.glassfish.api

Examples of org.glassfish.api.VersionInfo


    /**
     * GlassFish can override to specify their product version
     */
    protected String getProductId() {
        if (habitat != null) {
            VersionInfo versionInfo = habitat.getService(VersionInfo.class);
            if (productId.isEmpty() && versionInfo != null) {
                StringBuilder sb = new StringBuilder();
                sb.append(versionInfo.getAbbreviatedProductName());
                sb.append(' ');
                sb.append(versionInfo.getVersionPrefix());
                sb.append(versionInfo.getMajorVersion());
                sb.append('.');
                sb.append(versionInfo.getMinorVersion());
                productId = sb.toString();           
            }           
        }
        return productId;
    }
View Full Code Here


    /**
     * GlassFish can override to specify their product version
     */
    protected String getProductId() {
        if (habitat != null) {
            VersionInfo versionInfo = habitat.getService(VersionInfo.class);
            if (productId.isEmpty() && versionInfo != null) {
                StringBuilder sb = new StringBuilder();
                sb.append(versionInfo.getAbbreviatedProductName());
                sb.append(' ');
                sb.append(versionInfo.getVersionPrefix());
                sb.append(versionInfo.getMajorVersion());
                sb.append('.');
                sb.append(versionInfo.getMinorVersion());
                productId = sb.toString();           
            }           
        }
        return productId;
    }
View Full Code Here

    /**
     * GlassFish can override to specify their product version
     */
    protected String getProductId() {
        if (habitat != null) {
            VersionInfo versionInfo = habitat.getService(VersionInfo.class);
            if (productId.isEmpty() && versionInfo != null) {
                StringBuilder sb = new StringBuilder();
                sb.append(versionInfo.getAbbreviatedProductName());
                sb.append(' ');
                sb.append(versionInfo.getVersionPrefix());
                sb.append(versionInfo.getMajorVersion());
                sb.append('.');
                sb.append(versionInfo.getMinorVersion());
                productId = sb.toString();           
            }           
        }
        return productId;
    }
View Full Code Here

    /**
     * GlassFish can override to specify their product version
     */
    protected String getProductId() {
        if (habitat != null) {
            VersionInfo versionInfo = habitat.getService(VersionInfo.class);
            if (productId.isEmpty() && versionInfo != null) {
                StringBuilder sb = new StringBuilder();
                sb.append(versionInfo.getAbbreviatedProductName());
                sb.append(' ');
                sb.append(versionInfo.getVersionPrefix());
                sb.append(versionInfo.getMajorVersion());
                sb.append('.');
                sb.append(versionInfo.getMinorVersion());
                productId = sb.toString();           
            }           
        }
        return productId;
    }
View Full Code Here

TOP

Related Classes of org.glassfish.api.VersionInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.