Package ratpack.groovy.internal

Examples of ratpack.groovy.internal.RatpackDslClosureToHandlerTransformer.apply()


  @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
Copyright © 2018 www.massapi.com. 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.