Package org.rioproject.util

Examples of org.rioproject.util.RioManifest


     * Get the {@link net.jini.lookup.entry.ServiceInfo} for the Monitor
     */
    @Override
    protected ServiceInfo getServiceInfo() {
        URL implUrl = getClass().getProtectionDomain().getCodeSource().getLocation();
        RioManifest rioManifest;
        String build = null;
        try {
            rioManifest = new RioManifest(implUrl);
            build = rioManifest.getRioBuild();
        } catch(IOException e) {
            logger.warn("Getting Rio Manifest", e);
        }
        if(build==null)
            build="0";
View Full Code Here


     */
    public static String getBuildNumber() {
        String build;
        URL implUrl = RioVersion.class.getProtectionDomain().getCodeSource().getLocation();
        try {
            RioManifest rioManifest = new RioManifest(implUrl);
            build = rioManifest.getRioBuild();
        } catch (IOException e) {
            e.printStackTrace();
            build = e.getClass().getName()+": "+e.getMessage();
        }
        return build;
View Full Code Here

     * @return The ServiceInfo
     */
    @Override
    protected ServiceInfo getServiceInfo() {
        URL implUrl = getClass().getProtectionDomain().getCodeSource().getLocation();
        RioManifest rioManifest;
        String build = null;
        try {
            rioManifest = new RioManifest(implUrl);
            build = rioManifest.getRioBuild();
        } catch(IOException e) {
            logger.warn("Getting Rio Manifest", e);
        }
        if(build==null)
            build="0";
View Full Code Here

        }

        if(build==null) {
            URL implUrl = getClass().getProtectionDomain().getCodeSource().getLocation();
            try {
                RioManifest rioManifest = new RioManifest(implUrl);
                build = rioManifest.getRioBuild();
            } catch (Exception e) {
                e.printStackTrace();
                build = e.getClass().getName()+": "+e.getMessage();
            }
        }
View Full Code Here

TOP

Related Classes of org.rioproject.util.RioManifest

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.