Package oracle.pgx.config
Class RealmConfigBuilder
java.lang.Object
oracle.pgx.config.RealmConfigBuilder
@Generated({"common/config/src/templates/ConfigBuilder.stg","common/config/config.gradle"})
public final class RealmConfigBuilder
extends Object
Builder for
RealmConfig.-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty RealmConfigBuilderRealmConfigBuilder(Map<RealmConfig.Field, Object> values) Constructs a RealmConfigBuilder initialized with the values from the given mapRealmConfigBuilder(RealmConfig config) Constructs a RealmConfigBuilder initialized with the values from the given configRealmConfigBuilder(RealmConfigBuilder builder) Constructs a RealmConfigBuilder initialized with the values from the given builder -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the RealmConfig with aparentPathofnull.Builds the RealmConfig.static RealmConfigbuildRealmConfig(Consumer<RealmConfigBuilder> builderSetup) Builds aRealmConfigin-placeclear()Clears all values from the builderputAll(Map<RealmConfig.Field, Object> values) Puts all values from the given map into this builder.putAll(RealmConfig config) Puts all values from the given config into this buildersetImplementation(String implementation) class name of the realm implementation to loadsetOptions(Object options) implementation dependent configuration options for the realmtoString()
-
Constructor Details
-
RealmConfigBuilder
public RealmConfigBuilder()Constructs an empty RealmConfigBuilder -
RealmConfigBuilder
Constructs a RealmConfigBuilder initialized with the values from the given map- Parameters:
values- a map containing configuration values
-
RealmConfigBuilder
Constructs a RealmConfigBuilder initialized with the values from the given config- Parameters:
config- the configuration to take the values from
-
RealmConfigBuilder
Constructs a RealmConfigBuilder initialized with the values from the given builder- Parameters:
builder- the builder to take the values from
-
-
Method Details
-
buildRealmConfig
Builds aRealmConfigin-place- Parameters:
builderSetup- a consumer to setup a newly createdRealmConfig
-
putAll
Puts all values from the given map into this builder.- Parameters:
values- the values to put in the builder
-
putAll
Puts all values from the given config into this builder- Parameters:
config- the config to take the values from
-
clear
Clears all values from the builder -
build
Builds the RealmConfig.- Parameters:
parentPath- if not null, resolves relative paths against this parentPath- Returns:
- an instance of RealmConfig
-
build
Builds the RealmConfig with aparentPathofnull.- Returns:
- An instance of RealmConfig
- See Also:
-
toInputStream
- Returns:
- an
InputStreamrepresenting the config
-
getValues
- Returns:
- the raw config values
-
toString
-
setImplementation
class name of the realm implementation to load -
setOptions
implementation dependent configuration options for the realm
-