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 java.lang.ObjectBuilder forRealmConfig.
-
-
Constructor Summary
Constructors Constructor Description RealmConfigBuilder()Constructs an empty RealmConfigBuilderRealmConfigBuilder(java.util.Map<RealmConfig.Field,java.lang.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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RealmConfigbuild()Builds the RealmConfig with aparentPathofnull.RealmConfigbuild(java.lang.String parentPath)Builds the RealmConfig.static RealmConfigbuildRealmConfig(java.util.function.Consumer<RealmConfigBuilder> builderSetup)Builds aRealmConfigin-placeRealmConfigBuilderclear()Clears all values from the builderjava.util.Map<RealmConfig.Field,java.lang.Object>getValues()RealmConfigBuilderputAll(java.util.Map<RealmConfig.Field,java.lang.Object> values)Puts all values from the given map into this builder.RealmConfigBuilderputAll(RealmConfig config)Puts all values from the given config into this builderRealmConfigBuildersetImplementation(java.lang.String implementation)class name of the realm implementation to loadRealmConfigBuildersetOptions(java.lang.Object options)implementation dependent configuration options for the realmjava.io.InputStreamtoInputStream()java.lang.StringtoString()
-
-
-
Constructor Detail
-
RealmConfigBuilder
public RealmConfigBuilder()
Constructs an empty RealmConfigBuilder
-
RealmConfigBuilder
public RealmConfigBuilder(java.util.Map<RealmConfig.Field,java.lang.Object> values)
Constructs a RealmConfigBuilder initialized with the values from the given map- Parameters:
values- a map containing configuration values
-
RealmConfigBuilder
public RealmConfigBuilder(RealmConfig config)
Constructs a RealmConfigBuilder initialized with the values from the given config- Parameters:
config- the configuration to take the values from
-
RealmConfigBuilder
public RealmConfigBuilder(RealmConfigBuilder builder)
Constructs a RealmConfigBuilder initialized with the values from the given builder- Parameters:
builder- the builder to take the values from
-
-
Method Detail
-
buildRealmConfig
public static RealmConfig buildRealmConfig(java.util.function.Consumer<RealmConfigBuilder> builderSetup)
Builds aRealmConfigin-place- Parameters:
builderSetup- a consumer to setup a newly createdRealmConfig
-
putAll
public RealmConfigBuilder putAll(java.util.Map<RealmConfig.Field,java.lang.Object> values)
Puts all values from the given map into this builder.- Parameters:
values- the values to put in the builder
-
putAll
public RealmConfigBuilder putAll(RealmConfig config)
Puts all values from the given config into this builder- Parameters:
config- the config to take the values from
-
clear
public RealmConfigBuilder clear()
Clears all values from the builder
-
build
public RealmConfig build(java.lang.String parentPath)
Builds the RealmConfig.- Parameters:
parentPath- if not null, resolves relative paths against this parentPath- Returns:
- an instance of RealmConfig
-
build
public RealmConfig build()
Builds the RealmConfig with aparentPathofnull.- Returns:
- An instance of RealmConfig
- See Also:
build(String)
-
toInputStream
public java.io.InputStream toInputStream()
- Returns:
- an
InputStreamrepresenting the config
-
getValues
public java.util.Map<RealmConfig.Field,java.lang.Object> getValues()
- Returns:
- the raw config values
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
setImplementation
public RealmConfigBuilder setImplementation(java.lang.String implementation)
class name of the realm implementation to load
-
setOptions
public RealmConfigBuilder setOptions(java.lang.Object options)
implementation dependent configuration options for the realm
-
-