Package ratpack.groovy.internal

Examples of ratpack.groovy.internal.RatpackDslClosureToHandlerTransformer


    boolean compileStatic = Boolean.parseBoolean(launchConfig.getOther(COMPILE_STATIC_PROPERTY_NAME, COMPILE_STATIC_PROPERTY_DEFAULT));

    Function<Module, Injector> moduleTransformer = Guice.newInjectorFactory(launchConfig);
    GuiceBackedHandlerFactory handlerFactory = new GroovyKitAppFactory(launchConfig);
    Function<Closure<?>, Handler> closureTransformer = new RatpackDslClosureToHandlerTransformer(launchConfig, handlerFactory, moduleTransformer);

    return new ScriptBackedApp(script, compileStatic, launchConfig.isDevelopment(), closureTransformer);
  }
View Full Code Here


  @Override
  public Handler create(LaunchConfig launchConfig) throws Exception {
    GuiceBackedHandlerFactory guiceHandlerFactory = new GroovyKitAppFactory(launchConfig);
    Function<Module, Injector> moduleInjectorTransformer = Guice.newInjectorFactory(launchConfig);
    Function<Closure<?>, Handler> handlerTransformer = new RatpackDslClosureToHandlerTransformer(launchConfig, guiceHandlerFactory, moduleInjectorTransformer);
    return handlerTransformer.apply(ratpackClosure);
  }
View Full Code Here

TOP

Related Classes of ratpack.groovy.internal.RatpackDslClosureToHandlerTransformer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.