Class ClientRuntimeBuilder
java.lang.Object
org.apache.cayenne.configuration.rop.client.ClientRuntimeBuilder
A convenience class to assemble custom ClientRuntime. It allows to easily configure custom modules and create local runtime.
To create this builder use ClientRuntime.builder()
method.
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionaddModules
(Collection<Module> modules) build()
Disables DI module auto-loading.CreateClientRuntime
that provides an ROP stack based on a local connection on top of a server stack.properties
(Map<String, String> properties)
-
Method Details
-
disableModulesAutoLoading
Disables DI module auto-loading. By default auto-loading is enabled based onCayenneClientModuleProvider
service provider interface. If you decide to disable auto-loading, make sure you provide all the modules that you need.- Returns:
- this builder instance.
-
addModule
-
addModules
-
properties
- Parameters:
properties
- contributed toServerModule
- Returns:
- this builder
-
local
CreateClientRuntime
that provides an ROP stack based on a local connection on top of a server stack.- Parameters:
serverInjector
- server injector- Returns:
- this builder
-
build
-