Package ratpack.launch

Examples of ratpack.launch.LaunchConfig


    return invoke(handler, launchConfigBuilder.build(), registryBuilder.build());
  }

  @Override
  public HandlingResult handleChain(Action<? super Chain> chainAction) throws Exception {
    LaunchConfig launchConfig = launchConfigBuilder.build();
    Registry registry = registryBuilder.build();
    Handler handler = Handlers.chain(launchConfig, registry, chainAction);
    return invoke(handler, launchConfig, registry);
  }
View Full Code Here


  protected void configure() {
  }

  @Override
  public Handler decorate(Injector injector, Handler handler) {
    LaunchConfig launchConfig = injector.getInstance(LaunchConfig.class);
    String endpointPath = path == null ? launchConfig.getOther("remoteControl.path", "remote-control") : path;
    boolean enabled = Boolean.valueOf(launchConfig.getOther("remoteControl.enabled", "false")) || launchConfig.isDevelopment();

    if (enabled) {
      return new RemoteControlHandler(endpointPath, Guice.justInTimeRegistry(injector), handler);
    } else {
      return handler;
View Full Code Here

    }

    Properties properties = createProperties(scriptFile);

    Path configFile = new DefaultFileSystemBinding(baseDir).file(LaunchConfigs.CONFIG_RESOURCE_DEFAULT);
    LaunchConfig launchConfig = LaunchConfigs.createFromFile(closure.getClass().getClassLoader(), baseDir, configFile, properties, defaultProperties);

    if (scriptFile == null) {
      launchConfig = new DelegatingLaunchConfig(launchConfig) {
        @Override
        public HandlerFactory getHandlerFactory() {
View Full Code Here

   *
   * @param injector The injector created from all the application modules
   * @return The callback path
   */
  private String getCallbackPath(Injector injector) {
    LaunchConfig launchConfig = injector.getInstance(LaunchConfig.class);
    return callbackPath == null ? launchConfig.getOther("pac4j.callbackPath", DEFAULT_CALLBACK_PATH) : callbackPath;
  }
View Full Code Here

public abstract class LaunchConfigEmbeddedApp extends EmbeddedAppSupport {

  @Override
  protected RatpackServer createServer() {
    LaunchConfig launchConfig = createLaunchConfig();
    return RatpackServerBuilder.build(launchConfig);
  }
View Full Code Here

TOP

Related Classes of ratpack.launch.LaunchConfig

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.