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.handling
package.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 exercisingHandler
implementations without start a fullEmbeddedApp
. -
-
Uses of Registry in ratpack.core.handling
Subinterfaces of Registry in ratpack.core.handling Modifier and Type Interface Description interface
Context
The context of an individualHandler
invocation.Methods in ratpack.core.handling that return Registry Modifier and Type Method Description Registry
Chain. getRegistry()
The registry that backs this chain.Methods in ratpack.core.handling with parameters of type Registry Modifier and Type Method Description static Handler
Handlers. byContent(Registry registry, Action<? super ByContentSpec> action)
Builds a content negotiating handler.static Handler
Handlers. byMethod(Registry registry, Action<? super ByMethodSpec> action)
Builds a multi method handler.static Handler
Handlers. chain(ServerConfig serverConfig, Registry registry, Action<? super Chain> action)
Builds a chain, backed by the given registry.static Handler
Handlers. chain(Registry registry, Action<? super Chain> action)
Builds a chain, backed by the given registry.Handler
HandlerDecorator. decorate(Registry serverRegistry, Handler rest)
Creates a new handler that decorates the application handlers, given as therest
argument.void
Context. insert(Registry registry, Handler... handlers)
Inserts some handlers into the pipeline to execute with the given registry, then delegates to the first.void
Context. next(Registry registry)
Invokes the next handler, after adding the given registry.default Chain
Chain. register(Registry registry)
Makes the contents of the given registry available for downstream handlers of the same nesting level.default Chain
Chain. register(Registry registry, Class<? extends Action<? super Chain>> action)
default Chain
Chain. 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 Handler
Handlers. register(Registry registry)
A handler that simply callsContext.next(Registry)
with the given registry.static Handler
Handlers. 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 HealthCheck
HealthCheck. 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 interface
Request
A request to be handled. -
Uses of Registry in ratpack.core.impose
Methods in ratpack.core.impose that return Registry Modifier and Type Method Description Registry
UserRegistryImposition. 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 Registry
UserRegistryImposition. build(Registry userRegistry)
Returns the registry of additions, taking the original user registry as the argument.static UserRegistryImposition
UserRegistryImposition. 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 UserRegistryImposition
UserRegistryImposition. of(Function<? super Registry,? extends Registry> registry)
Creates an imposition of registry returned by the given function.static UserRegistryImposition
UserRegistryImposition. 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> ResponseChunks
Jackson. chunkedJsonList(Registry registry, Publisher<T> stream)
Renders a data stream as a JSON list, directly streaming the JSON.static ObjectWriter
Jackson. 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 RatpackServerSpec
RatpackServerSpec. registry(Registry registry)
Sets the user registry to exactly the given registry.boolean
ReloadInformant. 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 RatpackServerSpec
RatpackServerSpec. handler(Function<? super Registry,? extends Handler> handlerFactory)
Sets the root handler to the return of the given function.RatpackServerSpec
RatpackServerSpec. registry(Function<? super Registry,? extends Registry> function)
Sets the user registry as the return value of the given function.RatpackServerSpec
RatpackServerSpec. 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 Registry
StartEvent. getRegistry()
The server registry.Registry
StopEvent. getRegistry()
The server registry. -
Uses of Registry in ratpack.exec
Subinterfaces of Registry in ratpack.exec Modifier and Type Interface Description interface
Execution
A logical operation, such as servicing a request, that may be comprised of non contiguous units of work.interface
ExecutionRef
A reference to anExecution
that 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 interface
MutableRegistry
ARegistry
that is also mutable.Methods in ratpack.exec.registry that return Registry Modifier and Type Method Description static Registry
Registry. backedBy(RegistryBacking registryBacking)
Creates a new registry instance that is backed by a RegistryBacking implementation.Registry
RegistryBuilder. build()
Builds the registry.static Registry
Registry. empty()
Returns an empty registry.default Registry
Registry. join(Registry child)
Creates a new registry by joiningthis
registry with the given registrystatic Registry
Registry. of(Action<? super RegistrySpec> action)
Builds a registry from the given action.static <T> Registry
Registry. single(Class<? super T> publicType, T implementation)
Creates a single entry registry, usingRegistryBuilder.add(Class, Object)
.static Registry
Registry. single(Object object)
Creates a single entry registry, usingRegistryBuilder.add(Object)
.static <T> Registry
Registry. 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 Registry
Registry. join(Registry child)
Creates a new registry by joiningthis
registry 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 Handler
Groovy. byContent(Registry registry, Closure<?> closure)
Builds a content negotiating handler.static Handler
Groovy. byMethod(Registry registry, Closure<?> closure)
Builds a multi method handler.static Handler
Groovy. chain(ServerConfig serverConfig, Registry registry, Closure<?> closure)
Builds a chain, backed by the given registry.static Handler
Groovy. 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 interface
GroovyContext
Subclass ofContext
that adds Groovy friendly variants of methods.Methods in ratpack.groovy.handling that return Registry Modifier and Type Method Description Registry
GroovyChainAction. getRegistry()
The registry that backs this chain.Methods in ratpack.groovy.handling with parameters of type Registry Modifier and Type Method Description default GroovyChain
GroovyChain. register(Registry registry)
Makes the contents of the given registry available for downstream handlers of the same nesting level.default GroovyChain
GroovyChain. register(Registry registry, Closure<?> handlers)
default GroovyChain
GroovyChain. register(Registry registry, Class<? extends Action<? super Chain>> action)
default GroovyChain
GroovyChain. 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 GroovyRatpackServerSpec
GroovyRatpackServerSpec. handler(Function<? super Registry,? extends Handler> handlerFactory)
GroovyRatpackServerSpec
GroovyRatpackServerSpec. registry(Function<? super Registry,? extends Registry> function)
GroovyRatpackServerSpec
GroovyRatpackServerSpec. 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> ResponseChunks
Gson. 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 Registry
Guice. registry(com.google.inject.Injector injector)
Creates a RatpackRegistry
backed by the givenInjector
that 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 Registry
Spring. spring(Class<?> clazz, String... args)
Creates a registry backed by the given Spring Boot application class.static Registry
Spring. spring(org.springframework.beans.factory.ListableBeanFactory beanFactory)
Creates a registry backed by the given bean factory.static Registry
Spring. 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 EmbeddedApp
EmbeddedApp. 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 Registry
HandlingResult. getRegistry()
The final state of the context registry.Registry
HandlingResult. getRequestRegistry()
The final state of the request registry.
-