當前位置: 首頁>>代碼示例>>Java>>正文


Java TracerFactory.setDefaultInstance方法代碼示例

本文整理匯總了Java中net.ssehub.easy.instantiation.core.model.execution.TracerFactory.setDefaultInstance方法的典型用法代碼示例。如果您正苦於以下問題:Java TracerFactory.setDefaultInstance方法的具體用法?Java TracerFactory.setDefaultInstance怎麽用?Java TracerFactory.setDefaultInstance使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在net.ssehub.easy.instantiation.core.model.execution.TracerFactory的用法示例。


在下文中一共展示了TracerFactory.setDefaultInstance方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: initialize

import net.ssehub.easy.instantiation.core.model.execution.TracerFactory; //導入方法依賴的package包/類
/**
 * Initializes the repository connector. This is done automatically on first access, but shall be done during
 * layer startup.
 */
public static void initialize() {
    if (null == loader) {
        // start up EASy 
        try {
            QmLogging.setLogLevel(Level.INFO);
            QmLogging.disableUnwantedLogging();
            //QmLogging.setLogLevel("org.eclipse.xtext.service.BindModule", Level.INFO);
            loader = new ListLoader();
            loader.setVerbose(false);
            loader.startup();
        } catch (IOException e) {
            getLogger().error(e.getMessage());
        }
        
        if (readModels()) {
            // set tracing 
            TracerFactory.setDefaultInstance(TracerFactory.DEFAULT);
        }
    }
}
 
開發者ID:QualiMaster,項目名稱:Infrastructure,代碼行數:25,代碼來源:RepositoryConnector.java

示例2: executeScript

import net.ssehub.easy.instantiation.core.model.execution.TracerFactory; //導入方法依賴的package包/類
/**
     * Creates a VIL executor for the contained PLP.
     * 
     * @param artifactsFolder the name of the folder in testdata
     * @param script the script
     * @param targetFile the target directory
     * 
     * @throws ModelManagementException 
     * @throws VilException 
     */
    private void executeScript(String artifactsFolder, File script, File targetFile) throws
        ModelManagementException, 
        VilException {
//        final File base = new File(getArtifactsFolder(), artifactsFolder);
//        final File script = new File(getArtifactsFolder(), script);
        // execute
        //System.out.println(script.getAbsolutePath());
        String scriptName = script.getName().replaceAll(".vil", "");
        ProjectDescriptor source = new ProjectDescriptor(script.getAbsolutePath(), scriptName);
        ProjectDescriptor target = new ProjectDescriptor(source, targetFile);
        TracerFactory.setDefaultInstance(ConsoleTracerFactory.INSTANCE);
        Executor executor = new Executor(source.getMainVilScript()).addSource(source).addTarget(target)
                .addConfiguration(ProjectDescriptor.getConfiguration(scriptName));
        executor.execute();
    }
 
開發者ID:SSEHUB,項目名稱:EASyProducer,代碼行數:26,代碼來源:ProjectExecutionTest.java

示例3: earlyStartup

import net.ssehub.easy.instantiation.core.model.execution.TracerFactory; //導入方法依賴的package包/類
@Override
public void earlyStartup() {
    IWorkbench workbench = PlatformUI.getWorkbench();
    workbench.getDisplay().syncExec(new Runnable() {
        public void run() {
            // I would expect the following line to be part of the startup of EASy core
            EASyLogger logger = EASyLoggerFactory.INSTANCE.getLogger(Startup.class,
                "de.uni_hildesheim.sse.easy.ui");
            logger.info("EASy-Producer 2.0 is up and running...");
            ResourcesMgmt.INSTANCE.findPLProjects();
        }
    });
    // Register the observer for sending messages to the console of the running Eclipse-instance.
    TracerFactory.setDefaultInstance(GuiTracerFactory.INSTANCE);
}
 
開發者ID:SSEHUB,項目名稱:EASyProducer,代碼行數:16,代碼來源:Startup.java

示例4: Activator

import net.ssehub.easy.instantiation.core.model.execution.TracerFactory; //導入方法依賴的package包/類
/**
 * The constructor.
 */
public Activator() {
    EASyInitializer.setInitializer();       
    TracerFactory.setDefaultInstance(ConsoleTracerFactory.INSTANCE);
}
 
開發者ID:SSEHUB,項目名稱:EASyProducer,代碼行數:8,代碼來源:Activator.java


注:本文中的net.ssehub.easy.instantiation.core.model.execution.TracerFactory.setDefaultInstance方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。