Uses of Interface
ratpack.func.Factory
-
Packages that use Factory Package Description ratpack.core.impose ratpack.exec The execution management.ratpack.func ratpack.jdbctx ratpack.retrofit Integration with Retrofit.ratpack.test Fixtures used for testing Ratpack applications (seeApplicationUnderTest
).ratpack.test.embed Support for creating embedded applications at test time, for testing Ratpack features and extensions. -
-
Uses of Factory in ratpack.core.impose
Methods in ratpack.core.impose with parameters of type Factory Modifier and Type Method Description static <T> T
Impositions. impose(Impositions impositions, Factory<? extends T> during)
Sets impositions that will be available during execution of the given function, from this thread.<T> T
Impositions. impose(Factory<? extends T> during)
Delegates toImpositions.impose(Impositions, Factory)
, withthis
as the impositions. -
Uses of Factory in ratpack.exec
Methods in ratpack.exec with parameters of type Factory Modifier and Type Method Description default <B,A>
Promise<A>Promise. around(Factory<? extends B> before, BiFunction<? super B,? super ExecResult<T>,? extends ExecResult<A>> after)
Facilitates capturing a value before the the promise is subscribed and using it to later augment the result.default <T> Promise<T>
Operation. flatMap(Factory<? extends Promise<T>> factory)
static Operation
Operation. flatten(Factory<Operation> factory)
Create an operation that delegates to another operation.static <T> Promise<T>
Promise. flatten(Factory<? extends Promise<T>> factory)
Creates a promise for the promise produced by the given factory.static <T> Promise<T>
Blocking. get(Factory<T> factory)
Performs a blocking operation on a separate thread, returning a promise for its value.default <T> Promise<T>
Operation. map(Factory<? extends T> factory)
static <T> Promise<T>
Promise. sync(Factory<T> factory)
Creates a promise for the value synchronously produced by the given factory. -
Uses of Factory in ratpack.func
Methods in ratpack.func that return Factory Modifier and Type Method Description static <T> Factory<T>
Factory. constant(T item)
Creates a factory that always returns the given item.Methods in ratpack.func with parameters of type Factory Modifier and Type Method Description static <T> T
Exceptions. uncheck(Factory<T> factory)
Executes the given factory, returning its result and unchecking any exceptions it throws. -
Uses of Factory in ratpack.jdbctx
Methods in ratpack.jdbctx with parameters of type Factory Modifier and Type Method Description static Transaction
Transaction. bound(Factory<? extends Connection> connectionFactory)
Creates a transaction implementation that delegates to the execution bound transaction.static Transaction
Transaction. create(Factory<? extends Connection> connectionFactory)
Creates a new transaction.static Transaction
Transaction. get(Factory<? extends Connection> connectionFactory)
Returns the current transaction if present, otherwise a newly created transaction.default <T> Promise<T>
Transaction. wrap(Factory<? extends Promise<T>> promiseFactory)
Executes the given factory and yields the resultant promise in a transaction. -
Uses of Factory in ratpack.retrofit
Methods in ratpack.retrofit with parameters of type Factory Modifier and Type Method Description RatpackRetrofit.Builder
RatpackRetrofit.Builder. httpClient(Factory<? extends HttpClient> clientFactory)
Configures aFactory
that supplies the underlyingHttpClient
to back client interfaces generated from the return ofRatpackRetrofit.Builder.retrofit()
-
Uses of Factory in ratpack.test
Methods in ratpack.test with parameters of type Factory Modifier and Type Method Description static ServerBackedApplicationUnderTest
ServerBackedApplicationUnderTest. of(Factory<? extends RatpackServer> ratpackServer)
Creates a new instance backed by the server returned by the given function. -
Uses of Factory in ratpack.test.embed
Methods in ratpack.test.embed with parameters of type Factory Modifier and Type Method Description static EmbeddedApp
EmbeddedApp. fromServer(Factory<? extends RatpackServer> server)
Creates an embedded application for the given server.
-