Java 类org.springframework.boot.cli.app.SpringApplicationLauncher 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:ArchiveCommand.java   
protected void addCliClasses(JarWriter writer) throws IOException {
    addClass(writer, PackagedSpringApplicationLauncher.class);
    addClass(writer, SpringApplicationLauncher.class);
    Resource[] resources = new PathMatchingResourcePatternResolver()
            .getResources("org/springframework/boot/groovy/**");
    for (Resource resource : resources) {
        String url = resource.getURL().toString();
        addResource(writer, resource,
                url.substring(url.indexOf("org/springframework/boot/groovy/")));
    }
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:SpringApplicationRunner.java   
@Override
public void run() {
    synchronized (this.monitor) {
        try {
            this.applicationContext = new SpringApplicationLauncher(
                    getContextClassLoader()).launch(this.compiledSources,
                            SpringApplicationRunner.this.args);
        }
        catch (Exception ex) {
            ex.printStackTrace();
        }
    }
}
项目:spring-boot-concourse    文件:ArchiveCommand.java   
protected void addCliClasses(JarWriter writer) throws IOException {
    addClass(writer, PackagedSpringApplicationLauncher.class);
    addClass(writer, SpringApplicationLauncher.class);
    Resource[] resources = new PathMatchingResourcePatternResolver()
            .getResources("org/springframework/boot/groovy/**");
    for (Resource resource : resources) {
        String url = resource.getURL().toString();
        addResource(writer, resource,
                url.substring(url.indexOf("org/springframework/boot/groovy/")));
    }
}
项目:spring-boot-concourse    文件:SpringApplicationRunner.java   
@Override
public void run() {
    try {
        this.applicationContext = new SpringApplicationLauncher(
                getContextClassLoader()).launch(this.compiledSources,
                        SpringApplicationRunner.this.args);
    }
    catch (Exception ex) {
        ex.printStackTrace();
    }
}
项目:contestparser    文件:ArchiveCommand.java   
protected void addCliClasses(JarWriter writer) throws IOException {
    addClass(writer, PackagedSpringApplicationLauncher.class);
    addClass(writer, SpringApplicationLauncher.class);
    Resource[] resources = new PathMatchingResourcePatternResolver()
            .getResources("org/springframework/boot/groovy/**");
    for (Resource resource : resources) {
        String url = resource.getURL().toString();
        addResource(writer, resource,
                url.substring(url.indexOf("org/springframework/boot/groovy/")));
    }
}
项目:contestparser    文件:SpringApplicationRunner.java   
@Override
public void run() {
    try {
        this.applicationContext = new SpringApplicationLauncher(
                getContextClassLoader()).launch(this.compiledSources,
                        SpringApplicationRunner.this.args);
    }
    catch (Exception ex) {
        ex.printStackTrace();
    }
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:PackagedSpringApplicationLauncher.java   
private void run(String[] args) throws Exception {
    URLClassLoader classLoader = (URLClassLoader) Thread.currentThread()
            .getContextClassLoader();
    new SpringApplicationLauncher(classLoader).launch(getSources(classLoader), args);
}
项目:spring-boot-concourse    文件:PackagedSpringApplicationLauncher.java   
private void run(String[] args) throws Exception {
    URLClassLoader classLoader = (URLClassLoader) Thread.currentThread()
            .getContextClassLoader();
    new SpringApplicationLauncher(classLoader).launch(getSources(classLoader), args);
}
项目:contestparser    文件:PackagedSpringApplicationLauncher.java   
private void run(String[] args) throws Exception {
    URLClassLoader classLoader = (URLClassLoader) Thread.currentThread()
            .getContextClassLoader();
    new SpringApplicationLauncher(classLoader).launch(getSources(classLoader), args);
}