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

grails.boot.GrailsAppBuilder.groovy Maven / Gradle / Ivy

There is a newer version: 6.2.1
Show newest version
package grails.boot

import groovy.transform.CompileStatic
import groovy.transform.InheritConstructors
import org.springframework.boot.SpringApplication
import org.springframework.boot.builder.SpringApplicationBuilder
import org.springframework.core.io.ResourceLoader

/**
 * Fluent API for constructing GrailsApp instances. Simple extension of {@link SpringApplicationBuilder}.
 *
 * @author Graeme Rocher
 * @since 3.0.6
 */
@CompileStatic
@InheritConstructors
class GrailsAppBuilder extends SpringApplicationBuilder {

    @Override
    protected SpringApplication createSpringApplication(ResourceLoader resourceLoader, Class < ? > ... sources) {
        return new GrailsApp(resourceLoader, sources)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy