当前位置: 首页>>代码示例>>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;未经允许,请勿转载。