Package org.apache.juneau.config.store
Class ProfileConfigStore.Builder
java.lang.Object
org.apache.juneau.marshall.Context.Builder<SELF>
org.apache.juneau.config.store.ConfigStore.Builder<ProfileConfigStore.Builder>
org.apache.juneau.config.store.ProfileConfigStore.Builder
- Enclosing class:
- ProfileConfigStore
public static class ProfileConfigStore.Builder
extends ConfigStore.Builder<ProfileConfigStore.Builder>
Builder class.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilder()Constructor, default settings.protectedBuilder(ProfileConfigStore copyFrom) Copy constructor.protectedBuilder(ProfileConfigStore.Builder copyFrom) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionSets the base config name whose-<profile>overlays are merged.build()Build the object.copy()Copy creator.delegate(ConfigStore value) Sets the wrapped delegate store that supplies the base + profile file contents.format(ConfigFormat value) Sets the config format used to parse the base + profile files.Sets the active profiles, in activation order (last-active-profile wins).Methods inherited from class org.apache.juneau.marshall.Context.Builder
annotations, annotations, apply, applyAnnotations, applyAnnotations, asSubtype, build, cache, canApply, copyOrNull, debug, debug, getApplied, getType, hashKey, impl, isDebug, registerBuilders, self, type
-
Constructor Details
-
Builder
protected Builder()Constructor, default settings. -
Builder
Copy constructor.- Parameters:
copyFrom- The builder to copy from. Cannot benull .
-
Builder
Copy constructor.- Parameters:
copyFrom- The bean to copy from. Cannot benull .
-
-
Method Details
-
delegate
Sets the wrapped delegate store that supplies the base + profile file contents.- Parameters:
value- The delegate store.- Returns:
- This object.
-
baseName
Sets the base config name whose-<profile>overlays are merged.- Parameters:
value- The base config name.- Returns:
- This object.
-
profiles
Sets the active profiles, in activation order (last-active-profile wins).- Parameters:
value- The active profile names.
Can benull (treated as no active profiles).- Returns:
- This object.
-
format
Sets the config format used to parse the base + profile files.- Parameters:
value- The format.
Can benull (defaults toIniConfigFormat).- Returns:
- This object.
-
build
Description copied from class:Context.BuilderBuild the object.- Overrides:
buildin classContext.Builder<ProfileConfigStore.Builder>- Returns:
- The built object.
-
copy
Description copied from class:Context.BuilderCopy creator.- Specified by:
copyin classContext.Builder<ProfileConfigStore.Builder>- Returns:
- A new mutable copy of this builder.
-