- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
OptionConfigured.BuilderBase.OptionConfiguredImpl
Setup of configured option.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forOptionConfigured.static classOptionConfigured.BuilderBase<BUILDER extends OptionConfigured.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends OptionConfigured> Fluent API builder base forOptionConfigured. -
Method Summary
Modifier and TypeMethodDescriptionstatic OptionConfigured.Builderbuilder()Create a new fluent API builder to customize configuration.static OptionConfigured.Builderbuilder(OptionConfigured instance) Create a new fluent API builder from an existing instance.Config key to use.Factory method for this option.booleanmerge()Whether to merge the key with the current object.booleantraverse()Whether to traverse the config node when creating a map.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
configKey
String configKey()Config key to use.- Returns:
- config key
-
merge
boolean merge()Whether to merge the key with the current object.- Returns:
- whether to merge, defaults to
false, i.e. this option will have its own key, namedconfigKey()
-
traverse
boolean traverse()Whether to traverse the config node when creating a map.- Returns:
- whether to traverse config, defaults to
true
-
factoryMethod
Optional<FactoryMethod> factoryMethod()Factory method for this option. Factory method will be discovered fromPrototypeInfo.configFactories().- Returns:
- config factory method if defined
-