Package org.glassfish.api.branding

Examples of org.glassfish.api.branding.Branding


    /**
     * Sun One AppServer SE/EE can override to specify their product version
     */
    protected String getProductId() {

        Branding branding = null;
        // I have to use Globals rather than injection because the formatter lifecyle
        // is managed by the JDK and therefore this instance can be "in-use" long
        // before the habitat is ready. We still need to function, even in a degraded
        // mode.
        if (Globals.getDefaultHabitat() != null) {
            branding = Globals.getDefaultHabitat().getByContract(Branding.class);
        }
        if (branding == null) {
            return null;
        }
        String version = branding.getAbbreviatedVersion() + branding.getVersionPrefix() + branding.getMajorVersion() + "." + branding.getMinorVersion() + "." + branding.getUpdateVersion();
        return (version);
    }
View Full Code Here

TOP

Related Classes of org.glassfish.api.branding.Branding

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.