All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.edas.pandora.PandoraUtils Maven / Gradle / Ivy

There is a newer version: 1.8.3
Show newest version
package com.edas.pandora;

import com.taobao.hsf.standalone.HSFMiniContainer;

/**
 * Created by ifree613 on 2017/7/25.
 */
public class PandoraUtils {

    public static  void loadPandoraByLightApi(){
        try {
            String pandoraPath=System.getProperty("pandora.location");
            if(pandoraPath!=null&&!"".equals(pandoraPath.trim())){
                int sardirpos=pandoraPath.indexOf("taobao-hsf.sar");
                if (sardirpos!=-1){
                    pandoraPath=pandoraPath.substring(0,sardirpos);
                }
                HSFMiniContainer.start(pandoraPath);
            }
        } catch (Exception e) {
//            e.printStackTrace();
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy