Uses of Interface
ratpack.exec.registry.RegistrySpec
-
Packages that use RegistrySpec Package Description ratpack.core.handling The handling of application requests.ratpack.core.http The HTTP protocol.ratpack.core.render The renderer framework provides a pluggable mechanism for serializing objects to the response.ratpack.core.server Objects used to start a ratpack application.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.groovy.handling Groovy specific extensions to classes in theratpack.core.handling
package.ratpack.groovy.test.handling ratpack.guice Integration with Google Guice.ratpack.reactor Provides integration with the Project Reactor library.ratpack.rx2 Provides integration with the RxJava library.ratpack.test.exec ratpack.test.handling Test fixtures for exercisingHandler
implementations without start a fullEmbeddedApp
. -
-
Uses of RegistrySpec in ratpack.core.handling
Method parameters in ratpack.core.handling with type arguments of type RegistrySpec Modifier and Type Method Description default Chain
Chain. register(Action<? super RegistrySpec> action)
Builds a new registry via the given action, then registers it viaChain.register(Registry)
.default Chain
Chain. register(Action<? super RegistrySpec> registryAction, Class<? extends Action<? super Chain>> action)
default Chain
Chain. register(Action<? super RegistrySpec> registryAction, Action<? super Chain> action)
Adds a handler that inserts the given handler chain with a registry built by the given action viaContext.insert(Registry, Handler...)
. -
Uses of RegistrySpec in ratpack.core.http
Subinterfaces of RegistrySpec in ratpack.core.http Modifier and Type Interface Description interface
Request
A request to be handled. -
Uses of RegistrySpec in ratpack.core.render
Methods in ratpack.core.render that return types with arguments of type RegistrySpec Modifier and Type Method Description default Action<RegistrySpec>
RenderableDecorator. register()
A registration action, typically used withwith(Action)
. -
Uses of RegistrySpec in ratpack.core.server
Method parameters in ratpack.core.server with type arguments of type RegistrySpec Modifier and Type Method Description default RatpackServerSpec
RatpackServerSpec. registryOf(Action<? super RegistrySpec> action)
Builds the user registry via the given spec action. -
Uses of RegistrySpec in ratpack.exec
Subinterfaces of RegistrySpec 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.Method parameters in ratpack.exec with type arguments of type RegistrySpec Modifier and Type Method Description ExecSpec
ExecSpec. register(Action<? super RegistrySpec> action)
Populates the execution's registry.ExecStarter
ExecStarter. register(Action<? super RegistrySpec> action)
Populates the execution's registry. -
Uses of RegistrySpec in ratpack.exec.registry
Subinterfaces of RegistrySpec in ratpack.exec.registry Modifier and Type Interface Description interface
MutableRegistry
ARegistry
that is also mutable.interface
RegistryBuilder
A builder ofregistries
.Methods in ratpack.exec.registry that return RegistrySpec Modifier and Type Method Description default <O> RegistrySpec
RegistrySpec. add(com.google.common.reflect.TypeToken<O> type, O object)
Adds a registry entry that is available by the given type.default <O> RegistrySpec
RegistrySpec. add(Class<O> type, O object)
Adds a registry entry that is available by the given type.default RegistrySpec
RegistrySpec. add(Object object)
Adds a registry entry.<O> RegistrySpec
RegistrySpec. addLazy(com.google.common.reflect.TypeToken<O> type, Supplier<? extends O> supplier)
Adds a lazily created entry to the registry.default <O> RegistrySpec
RegistrySpec. addLazy(Class<O> type, Supplier<? extends O> supplier)
Adds a lazily created entry to the registry.default RegistrySpec
RegistrySpec. with(Action<? super RegistrySpec> action)
Executes the given action withthis
.Method parameters in ratpack.exec.registry with type arguments of type RegistrySpec Modifier and Type Method Description static Registry
Registry. of(Action<? super RegistrySpec> action)
Builds a registry from the given action.default RegistryBuilder
RegistryBuilder. with(Action<? super RegistrySpec> action)
default RegistrySpec
RegistrySpec. with(Action<? super RegistrySpec> action)
Executes the given action withthis
. -
Uses of RegistrySpec in ratpack.groovy.handling
Method parameters in ratpack.groovy.handling with type arguments of type RegistrySpec Modifier and Type Method Description default GroovyChain
GroovyChain. register(Action<? super RegistrySpec> action)
Builds a new registry via the given action, then registers it viaChain.register(Registry)
.default GroovyChain
GroovyChain. register(Action<? super RegistrySpec> registryAction, Closure<?> handler)
default GroovyChain
GroovyChain. register(Action<? super RegistrySpec> registryAction, Class<? extends Action<? super Chain>> action)
default GroovyChain
GroovyChain. register(Action<? super RegistrySpec> registryAction, Action<? super Chain> chainAction)
Adds a handler that inserts the given handler chain with a registry built by the given action viaContext.insert(Registry, Handler...)
. -
Uses of RegistrySpec in ratpack.groovy.test.handling
Method parameters in ratpack.groovy.test.handling with type arguments of type RegistrySpec Modifier and Type Method Description GroovyRequestFixture
GroovyRequestFixture. registry(Action<? super RegistrySpec> action)
Configures the context registry. -
Uses of RegistrySpec in ratpack.guice
Subinterfaces of RegistrySpec in ratpack.guice Modifier and Type Interface Description interface
BindingsSpec
A buildable specification of Guice bindings.Methods in ratpack.guice that return RegistrySpec Modifier and Type Method Description default <O> RegistrySpec
BindingsSpec. add(com.google.common.reflect.TypeToken<O> type, O object)
default <O> RegistrySpec
BindingsSpec. addLazy(com.google.common.reflect.TypeToken<O> type, Supplier<? extends O> supplier)
-
Uses of RegistrySpec in ratpack.reactor
Method parameters in ratpack.reactor with type arguments of type RegistrySpec Modifier and Type Method Description static <T> Flux<T>
ReactorRatpack. fork(Flux<T> flux, Action<? super RegistrySpec> doWithRegistrySpec)
A variant ofReactorRatpack.fork(reactor.core.publisher.Flux<T>)
that allows access to the registry of the forked execution inside anAction
.static <T> Flux<T>
ReactorRatpack. forkEach(Flux<T> flux, Action<? super RegistrySpec> doWithRegistrySpec)
A variant ofReactorRatpack.forkEach(reactor.core.publisher.Flux<T>)
that allows access to the registry of each forked execution inside anAction
. -
Uses of RegistrySpec in ratpack.rx2
Method parameters in ratpack.rx2 with type arguments of type RegistrySpec Modifier and Type Method Description static <T> Observable<T>
RxRatpack. fork(Observable<T> observable, Action<? super RegistrySpec> registrySpec)
A variant ofRxRatpack.fork(io.reactivex.Observable<T>)
that allows access to the registry of the forked execution inside anAction
.static <T> Observable<T>
RxRatpack. forkEach(Observable<T> observable, Action<? super RegistrySpec> registrySpec)
A variant ofRxRatpack.forkEach(io.reactivex.Observable<T>)
that allows access to the registry of each forked execution inside anAction
. -
Uses of RegistrySpec in ratpack.test.exec
Method parameters in ratpack.test.exec with type arguments of type RegistrySpec Modifier and Type Method Description default void
ExecHarness. execute(Action<? super RegistrySpec> registry, Function<? super Execution,? extends Operation> function)
static void
ExecHarness. executeSingle(Action<? super RegistrySpec> registry, Function<? super Execution,? extends Operation> function)
void
ExecHarness. run(Action<? super RegistrySpec> registry, Action<? super Execution> action)
Initiates an execution and blocks until it completes.static void
ExecHarness. runSingle(Action<? super RegistrySpec> registry, Action<? super Execution> action)
Convenient form ofExecHarness.run(Action, Action)
that creates and closes a harness for the run.<T> ExecResult<T>
ExecHarness. yield(Action<? super RegistrySpec> registry, Function<? super Execution,? extends Promise<T>> func)
Synchronously returns a promised value.static <T> ExecResult<T>
ExecHarness. yieldSingle(Action<? super RegistrySpec> registry, Function<? super Execution,? extends Promise<T>> func)
Creates an exec harness,executes
the given function with it before closing it, then returning execution result. -
Uses of RegistrySpec in ratpack.test.handling
Methods in ratpack.test.handling that return RegistrySpec Modifier and Type Method Description RegistrySpec
RequestFixture. getRegistry()
A specification of the context registry.Method parameters in ratpack.test.handling with type arguments of type RegistrySpec Modifier and Type Method Description RequestFixture
RequestFixture. registry(Action<? super RegistrySpec> action)
Configures the context registry.
-