Uses of Interface
ratpack.exec.registry.Registry
-
Packages that use Registry Package Description ratpack.core.handling The handling of application requests.ratpack.core.health Health checks report on the status of key components in the system and are generally used for monitoring and reporting.ratpack.core.http The HTTP protocol.ratpack.core.impose ratpack.core.jackson Integration with the Jackson JSON marshalling library.ratpack.core.server Objects used to start a ratpack application.ratpack.core.service Services participate in the application start/stop lifecycle.ratpack.exec The execution management.ratpack.exec.registry Registries hold objects that can be retrieved via type, and are a key aspect of Ratpack applications.ratpack.exec.stream Support for reactive streams.ratpack.groovy Support for writing Ratpack applications in the Groovy programming language.ratpack.groovy.handling Groovy specific extensions to classes in theratpack.core.handlingpackage.ratpack.groovy.server Groovy implementations of the Ratpack server building classes.ratpack.gson Provides integration with Google Gson for JSON parsing and rendering.ratpack.guice Integration with Google Guice.ratpack.hikari Provides integration with HikariCP library.ratpack.spring Provides integration with Spring Boot.ratpack.test.embed Support for creating embedded applications at test time, for testing Ratpack features and extensions.ratpack.test.handling Test fixtures for exercisingHandlerimplementations without start a fullEmbeddedApp. -
-
Uses of Registry in ratpack.core.handling
Subinterfaces of Registry in ratpack.core.handling Modifier and Type Interface Description interfaceContextThe context of an individualHandlerinvocation.Methods in ratpack.core.handling that return Registry Modifier and Type Method Description RegistryChain. getRegistry()The registry that backs this chain.Methods in ratpack.core.handling with parameters of type Registry Modifier and Type Method Description static HandlerHandlers. byContent(Registry registry, Action<? super ByContentSpec> action)Builds a content negotiating handler.static HandlerHandlers. byMethod(Registry registry, Action<? super ByMethodSpec> action)Builds a multi method handler.static HandlerHandlers. chain(ServerConfig serverConfig, Registry registry, Action<? super Chain> action)Builds a chain, backed by the given registry.static HandlerHandlers. chain(Registry registry, Action<? super Chain> action)Builds a chain, backed by the given registry.HandlerHandlerDecorator. decorate(Registry serverRegistry, Handler rest)Creates a new handler that decorates the application handlers, given as therestargument.voidContext. insert(Registry registry, Handler... handlers)Inserts some handlers into the pipeline to execute with the given registry, then delegates to the first.voidContext. next(Registry registry)Invokes the next handler, after adding the given registry.default ChainChain. register(Registry registry)Makes the contents of the given registry available for downstream handlers of the same nesting level.default ChainChain. register(Registry registry, Class<? extends Action<? super Chain>> action)default ChainChain. register(Registry registry, Action<? super Chain> action)Adds a handler that inserts the given handler chain with the given registry viaContext.insert(Registry, Handler...).static HandlerHandlers. register(Registry registry)A handler that simply callsContext.next(Registry)with the given registry.static HandlerHandlers. register(Registry registry, Handler handler)A handler that simply callsContext.insert(Registry, Handler...)with the given registry and handler. -
Uses of Registry in ratpack.core.health
Methods in ratpack.core.health with parameters of type Registry Modifier and Type Method Description Promise<HealthCheck.Result>HealthCheck. check(Registry registry)Checks the health of the component, providing a promise for the result.static Promise<HealthCheckResults>HealthCheck. checkAll(Registry registry, Iterable<? extends HealthCheck> healthChecks)Execute health checks.static Promise<HealthCheckResults>HealthCheck. checkAll(Registry registry, Throttle throttle, Iterable<? extends HealthCheck> healthChecks)Execute health checks.Method parameters in ratpack.core.health with type arguments of type Registry Modifier and Type Method Description static HealthCheckHealthCheck. of(String name, Function<? super Registry,? extends Promise<HealthCheck.Result>> func)Convenience factory for health check implementations. -
Uses of Registry in ratpack.core.http
Subinterfaces of Registry in ratpack.core.http Modifier and Type Interface Description interfaceRequestA request to be handled. -
Uses of Registry in ratpack.core.impose
Methods in ratpack.core.impose that return Registry Modifier and Type Method Description RegistryUserRegistryImposition. build(Registry userRegistry)Returns the registry of additions, taking the original user registry as the argument.Methods in ratpack.core.impose with parameters of type Registry Modifier and Type Method Description RegistryUserRegistryImposition. build(Registry userRegistry)Returns the registry of additions, taking the original user registry as the argument.static UserRegistryImpositionUserRegistryImposition. of(Registry registry)Creates an imposition of the given registry.Method parameters in ratpack.core.impose with type arguments of type Registry Modifier and Type Method Description static UserRegistryImpositionUserRegistryImposition. of(Function<? super Registry,? extends Registry> registry)Creates an imposition of registry returned by the given function.static UserRegistryImpositionUserRegistryImposition. of(Function<? super Registry,? extends Registry> registry)Creates an imposition of registry returned by the given function. -
Uses of Registry in ratpack.core.jackson
Methods in ratpack.core.jackson with parameters of type Registry Modifier and Type Method Description static <T> ResponseChunksJackson. chunkedJsonList(Registry registry, Publisher<T> stream)Renders a data stream as a JSON list, directly streaming the JSON.static ObjectWriterJackson. getObjectWriter(Registry registry)static <T> Function<T,String>Jackson. toJson(Registry registry)Deprecated.since 1.10 with no replacement -
Uses of Registry in ratpack.core.server
Methods in ratpack.core.server that return types with arguments of type Registry Modifier and Type Method Description Optional<Registry>RatpackServer. getRegistry()Convenience method to provide easy access to the application registry via a server reference.Methods in ratpack.core.server with parameters of type Registry Modifier and Type Method Description default RatpackServerSpecRatpackServerSpec. registry(Registry registry)Sets the user registry to exactly the given registry.booleanReloadInformant. shouldReload(Registry registry)Whether the server should reload.Method parameters in ratpack.core.server with type arguments of type Registry Modifier and Type Method Description RatpackServerSpecRatpackServerSpec. handler(Function<? super Registry,? extends Handler> handlerFactory)Sets the root handler to the return of the given function.RatpackServerSpecRatpackServerSpec. registry(Function<? super Registry,? extends Registry> function)Sets the user registry as the return value of the given function.RatpackServerSpecRatpackServerSpec. registry(Function<? super Registry,? extends Registry> function)Sets the user registry as the return value of the given function. -
Uses of Registry in ratpack.core.service
Methods in ratpack.core.service that return Registry Modifier and Type Method Description RegistryStartEvent. getRegistry()The server registry.RegistryStopEvent. getRegistry()The server registry. -
Uses of Registry in ratpack.exec
Subinterfaces of Registry in ratpack.exec Modifier and Type Interface Description interfaceExecutionA logical operation, such as servicing a request, that may be comprised of non contiguous units of work.interfaceExecutionRefA reference to anExecutionthat is usable from outside of it. -
Uses of Registry in ratpack.exec.registry
Subinterfaces of Registry in ratpack.exec.registry Modifier and Type Interface Description interfaceMutableRegistryARegistrythat is also mutable.Methods in ratpack.exec.registry that return Registry Modifier and Type Method Description static RegistryRegistry. backedBy(RegistryBacking registryBacking)Creates a new registry instance that is backed by a RegistryBacking implementation.RegistryRegistryBuilder. build()Builds the registry.static RegistryRegistry. empty()Returns an empty registry.default RegistryRegistry. join(Registry child)Creates a new registry by joiningthisregistry with the given registrystatic RegistryRegistry. of(Action<? super RegistrySpec> action)Builds a registry from the given action.static <T> RegistryRegistry. single(Class<? super T> publicType, T implementation)Creates a single entry registry, usingRegistryBuilder.add(Class, Object).static RegistryRegistry. single(Object object)Creates a single entry registry, usingRegistryBuilder.add(Object).static <T> RegistryRegistry. singleLazy(Class<T> publicType, Supplier<? extends T> supplier)Creates a single lazily created entry registry, usingRegistryBuilder.addLazy(Class, Supplier).Methods in ratpack.exec.registry with parameters of type Registry Modifier and Type Method Description default RegistryRegistry. join(Registry child)Creates a new registry by joiningthisregistry with the given registry -
Uses of Registry in ratpack.exec.stream
Methods in ratpack.exec.stream with parameters of type Registry Modifier and Type Method Description static <T> TransformablePublisher<T>Streams. periodically(Registry registry, Duration duration, Function<? super Integer,? extends T> producer) -
Uses of Registry in ratpack.groovy
Methods in ratpack.groovy that return types with arguments of type Registry Modifier and Type Method Description static Function<Registry,Registry>Groovy.Script. bindings()Creates a registry building function from a Groovy script named "bindings.groovy".static Function<Registry,Registry>Groovy.Script. bindings()Creates a registry building function from a Groovy script named "bindings.groovy".static Function<Registry,Registry>Groovy.Script. bindings(boolean compileStatic)Creates a registry building function from a Groovy script named "bindings.groovy".static Function<Registry,Registry>Groovy.Script. bindings(boolean compileStatic)Creates a registry building function from a Groovy script named "bindings.groovy".static Function<Registry,Registry>Groovy.Script. bindings(boolean compileStatic, String scriptPath)Creates a registry building function from a Groovy script.static Function<Registry,Registry>Groovy.Script. bindings(boolean compileStatic, String scriptPath)Creates a registry building function from a Groovy script.static Function<Registry,Registry>Groovy.Script. bindingsWithArgs(boolean compileStatic, String scriptPath, String... args)Creates a registry building function from a Groovy script.static Function<Registry,Registry>Groovy.Script. bindingsWithArgs(boolean compileStatic, String scriptPath, String... args)Creates a registry building function from a Groovy script.static Function<Registry,Handler>Groovy.Script. handlers()Creates a handler defining function from a "handlers.groovy" Groovy script.static Function<Registry,Handler>Groovy.Script. handlers(boolean compileStatic)Creates a handler defining function from a "handlers.groovy" Groovy script.static Function<Registry,Handler>Groovy.Script. handlers(boolean compileStatic, String scriptPath)Creates a handler defining function from a Groovy script.static Function<Registry,Handler>Groovy.Script. handlersWithArgs(boolean compileStatic, String scriptPath, String... args)Creates a handler defining function from a Groovy script.Methods in ratpack.groovy with parameters of type Registry Modifier and Type Method Description static HandlerGroovy. byContent(Registry registry, Closure<?> closure)Builds a content negotiating handler.static HandlerGroovy. byMethod(Registry registry, Closure<?> closure)Builds a multi method handler.static HandlerGroovy. chain(ServerConfig serverConfig, Registry registry, Closure<?> closure)Builds a chain, backed by the given registry.static HandlerGroovy. chain(Registry registry, Closure<?> closure)Builds a chain, backed by the given registry. -
Uses of Registry in ratpack.groovy.handling
Subinterfaces of Registry in ratpack.groovy.handling Modifier and Type Interface Description interfaceGroovyContextSubclass ofContextthat adds Groovy friendly variants of methods.Methods in ratpack.groovy.handling that return Registry Modifier and Type Method Description RegistryGroovyChainAction. getRegistry()The registry that backs this chain.Methods in ratpack.groovy.handling with parameters of type Registry Modifier and Type Method Description default GroovyChainGroovyChain. register(Registry registry)Makes the contents of the given registry available for downstream handlers of the same nesting level.default GroovyChainGroovyChain. register(Registry registry, Closure<?> handlers)default GroovyChainGroovyChain. register(Registry registry, Class<? extends Action<? super Chain>> action)default GroovyChainGroovyChain. register(Registry registry, Action<? super Chain> action)Adds a handler that inserts the given handler chain with the given registry viaContext.insert(Registry, Handler...). -
Uses of Registry in ratpack.groovy.server
Method parameters in ratpack.groovy.server with type arguments of type Registry Modifier and Type Method Description GroovyRatpackServerSpecGroovyRatpackServerSpec. handler(Function<? super Registry,? extends Handler> handlerFactory)GroovyRatpackServerSpecGroovyRatpackServerSpec. registry(Function<? super Registry,? extends Registry> function)GroovyRatpackServerSpecGroovyRatpackServerSpec. registry(Function<? super Registry,? extends Registry> function) -
Uses of Registry in ratpack.gson
Methods in ratpack.gson with parameters of type Registry Modifier and Type Method Description static <T> ResponseChunksGson. chunkedJsonList(Registry registry, Publisher<T> stream)Renders a data stream as a JSON list, directly streaming the JSON.static <T> Function<T,String>Gson. toJson(Registry registry)Creates a mapping function that returns the JSON representation as a string of the input object. -
Uses of Registry in ratpack.guice
Methods in ratpack.guice that return Registry Modifier and Type Method Description static RegistryGuice. registry(com.google.inject.Injector injector)Creates a RatpackRegistrybacked by the givenInjectorthat will NOT create objects via “just-in-time” binding.Methods in ratpack.guice that return types with arguments of type Registry Modifier and Type Method Description static Function<Registry,Registry>Guice. registry(com.google.inject.Injector parentInjector, Action<? super BindingsSpec> bindings)static Function<Registry,Registry>Guice. registry(com.google.inject.Injector parentInjector, Action<? super BindingsSpec> bindings)static Function<Registry,Registry>Guice. registry(Action<? super BindingsSpec> bindings)static Function<Registry,Registry>Guice. registry(Action<? super BindingsSpec> bindings) -
Uses of Registry in ratpack.hikari
Methods in ratpack.hikari with parameters of type Registry Modifier and Type Method Description Promise<HealthCheck.Result>HikariHealthCheck. check(Registry registry) -
Uses of Registry in ratpack.spring
Methods in ratpack.spring that return Registry Modifier and Type Method Description static RegistrySpring. spring(Class<?> clazz, String... args)Creates a registry backed by the given Spring Boot application class.static RegistrySpring. spring(org.springframework.beans.factory.ListableBeanFactory beanFactory)Creates a registry backed by the given bean factory.static RegistrySpring. spring(org.springframework.boot.builder.SpringApplicationBuilder builder, String... args)Creates a registry backed by the given Spring Boot application builder. -
Uses of Registry in ratpack.test.embed
Method parameters in ratpack.test.embed with type arguments of type Registry Modifier and Type Method Description static EmbeddedAppEmbeddedApp. fromHandlerFactory(Function<? super Registry,? extends Handler> handlerFactory)Creates an embedded application with a default launch config (no base dir, ephemeral port) and the given handler. -
Uses of Registry in ratpack.test.handling
Methods in ratpack.test.handling that return Registry Modifier and Type Method Description RegistryHandlingResult. getRegistry()The final state of the context registry.RegistryHandlingResult. getRequestRegistry()The final state of the request registry.
-