Package ratpack.registry

Examples of ratpack.registry.RegistryBuilder.build()


      ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
      receiver.execute(context.getRequest().getBody().getInputStream(), outputStream);

      if (registryBuilder.size() > 0) {
        Registry newRegistry = registryBuilder.build();
        registryReference.set(newRegistry);
      }

      context.getResponse().send(ContentType.RESULT.getValue(), outputStream.toByteArray());
    }
View Full Code Here


    if (launchConfig.isHasBaseDir()) {
      registryBuilder.add(FileSystemBinding.class, launchConfig.getBaseDir());
    }

    Registry foundationRegistry = registryBuilder.build();
    Registry defaultRegistry = launchConfig.getDefaultRegistry();
    return defaultRegistry != null ? foundationRegistry.join(defaultRegistry) : foundationRegistry;
  }

}
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.