当前位置: 首页>>代码示例>>Java>>正文


Java Bootstrap.getJLineShellComponent方法代码示例

本文整理汇总了Java中org.springframework.shell.Bootstrap.getJLineShellComponent方法的典型用法代码示例。如果您正苦于以下问题:Java Bootstrap.getJLineShellComponent方法的具体用法?Java Bootstrap.getJLineShellComponent怎么用?Java Bootstrap.getJLineShellComponent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.springframework.shell.Bootstrap的用法示例。


在下文中一共展示了Bootstrap.getJLineShellComponent方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: startUp

import org.springframework.shell.Bootstrap; //导入方法依赖的package包/类
@Before
public void startUp() throws InterruptedException {
    applicationName = "App" + new Random().nextInt(10000);
    
    Bootstrap bootstrap = new Bootstrap();
    shell = bootstrap.getJLineShellComponent();
}
 
开发者ID:oncecloud,项目名称:devops-cstack,代码行数:8,代码来源:AbstractShellIntegrationTest.java

示例2: exists

import org.springframework.shell.Bootstrap; //导入方法依赖的package包/类
public void exists() throws Exception {
    Bootstrap bootstrap = new Bootstrap();

    JLineShellComponent shell = bootstrap.getJLineShellComponent();

    CommandResult cr = shell.executeCommand("exists /analytics");
    assertEquals(true, cr.isSuccess());
}
 
开发者ID:avast,项目名称:hdfs-shell,代码行数:9,代码来源:ContextCommandsTest.java

示例3: getJLineShell

import org.springframework.shell.Bootstrap; //导入方法依赖的package包/类
private JLineShell getJLineShell(Bootstrap bs) {
  if (bs instanceof LensBootstrap) {
    return ((LensBootstrap) bs).getLensJLineShellComponent();
  } else {
    return bs.getJLineShellComponent();
  }
}
 
开发者ID:lorthos,项目名称:incubator-zeppelin-druid,代码行数:8,代码来源:LensInterpreter.java

示例4: run

import org.springframework.shell.Bootstrap; //导入方法依赖的package包/类
protected void run(String[] args)
{
  ServerConfigHelper.initConfig("env.properties");
  ServerConfigHelper.initLog4j("log4j-shell.xml");
  DomainMapperHelper.scanMapperRegistryClass();
  System.setProperty("jline.WindowsTerminal.directConsole", "false");
  String[] contextPath={ "gemlite-shell.xml" };
  bootstrap = new Bootstrap(args,contextPath);
  shell = (GShellComponent)bootstrap.getJLineShellComponent();
  shell.setDevelopmentMode(true);
  shell.addShellStatusListener(new ShellStatusListener()
  {
    @Override
    public void onShellStatusChange(ShellStatus oldStatus, ShellStatus newStatus)
    {
      if(newStatus.getStatus()==Status.STARTED)
      {
        DomainMapperHelper.scanMapperRegistryClass();
        shell.executeCommand("connect");
        shell.executeCommand("mn connect");
      }
        
    }
  });
  shell.start();
  shell.waitForComplete();
}
 
开发者ID:iisi-nj,项目名称:GemFireLite,代码行数:28,代码来源:GemliteShell.java

示例5: init

import org.springframework.shell.Bootstrap; //导入方法依赖的package包/类
public void init() {
    Bootstrap bootstrap = new Bootstrap(null,
            new String[]{"classpath*:/META-INF/spring/spring-shell-plugin-test.xml"});
    shell = bootstrap.getJLineShellComponent();
    applicationContext = bootstrap.getApplicationContext();
    ssaw = applicationContext.getBean(StratioStreamingApiWrapper.class);

    IStratioStreamingAPI stratioStreamingAPI = applicationContext.getBean(IStratioStreamingAPI.class);
    Mockito.when(stratioStreamingAPI.isInit()).thenReturn(true);
}
 
开发者ID:Stratio,项目名称:Decision,代码行数:11,代码来源:BaseShellTest.java

示例6: SlangCliTest

import org.springframework.shell.Bootstrap; //导入方法依赖的package包/类
public SlangCliTest() {
    Bootstrap bootstrap = new Bootstrap(null, CONTEXT_PATH);
    shell = bootstrap.getJLineShellComponent();
    scoreServicesMock = (ScoreServices) bootstrap.getApplicationContext().getBean("scoreServices");
    compilerHelperMock = (CompilerHelper) bootstrap.getApplicationContext().getBean("compilerHelper");
    slangCli = bootstrap.getApplicationContext().getBean(SlangCli.class);
}
 
开发者ID:CloudSlang,项目名称:cloud-slang,代码行数:8,代码来源:SlangCliTest.java

示例7: startUp

import org.springframework.shell.Bootstrap; //导入方法依赖的package包/类
@BeforeClass
public static void startUp() throws InterruptedException {
    Bootstrap bootstrap = new Bootstrap();
    shell = bootstrap.getJLineShellComponent();
}
 
开发者ID:UrielSarrazin,项目名称:partial-pressure-calculator,代码行数:6,代码来源:PartialPressureCommandIntegrationTest.java

示例8: startShell

import org.springframework.shell.Bootstrap; //导入方法依赖的package包/类
@Before
public void startShell() throws IOException, InterruptedException, AccumuloException, AccumuloSecurityException {
    // Bootstrap the shell with the test bean configuration.
    bootstrap = new Bootstrap(new String[]{}, new String[]{"file:src/test/resources/RyaShellTest-context.xml"});
    shell = bootstrap.getJLineShellComponent();
}
 
开发者ID:apache,项目名称:incubator-rya,代码行数:7,代码来源:RyaShellAccumuloITBase.java

示例9: startUp

import org.springframework.shell.Bootstrap; //导入方法依赖的package包/类
@BeforeClass
public static void startUp() throws InterruptedException {
  Bootstrap bootstrap = new Bootstrap();
  shell = bootstrap.getJLineShellComponent();
}
 
开发者ID:apache,项目名称:lens,代码行数:6,代码来源:LensCLITest.java


注:本文中的org.springframework.shell.Bootstrap.getJLineShellComponent方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。