FileDocCategorySizeDatePackage
Utils.javaAPI DocGlassfish v2 API3173Fri May 04 22:35:08 BST 2007com.sun.enterprise.tools.upgrade.gui.util

Utils

public class Utils extends Object
author
prakash

Fields Summary
private static HelpBroker
helpBroker
private static Logger
log
Constructors Summary
public Utils()
Creates a new instance of Utils

           
      
    
Methods Summary
public static HelpBrokergetHelpBroker()

        if(helpBroker == null){
            String helpHSString = "com/sun/enterprise/tools/upgrade/doc/UpgradeToolHelp.hs";
            HelpSet helpHS = null;
            ClassLoader cl = Utils.class.getClassLoader();
            try {
                java.net.URL hsURL = HelpSet.findHelpSet(cl, helpHSString);
                helpHS = new HelpSet(null, hsURL);
            } catch (Exception ee) {
                // log messages....
                log.warning( "HelpSet " + ee.getMessage());
                log.warning("HelpSet "+ helpHS +" not found");
                return null;
            }
            // Create a HelpBroker object:
            helpBroker = helpHS.createHelpBroker();
        }
        return helpBroker;