public static class MavenPlugin.ConfigurationBuilder extends Object
MavenPlugin.Configuration.| Constructor and Description |
|---|
ConfigurationBuilder() |
| Modifier and Type | Method and Description |
|---|---|
MavenPlugin.ConfigurationBuilder |
add(String name,
Consumer<MavenPlugin.ConfigurationBuilder> consumer)
Add the specified parameter with a nested structure.
|
MavenPlugin.ConfigurationBuilder |
add(String name,
String value)
Add the specified parameter with a single value.
|
MavenPlugin.ConfigurationBuilder |
configure(String name,
Consumer<MavenPlugin.ConfigurationBuilder> consumer)
Configure the parameter with the specified
name. |
public MavenPlugin.ConfigurationBuilder add(String name, String value)
name - the name of the parametervalue - the single value of the parameterpublic MavenPlugin.ConfigurationBuilder add(String name, Consumer<MavenPlugin.ConfigurationBuilder> consumer)
name - the name of the parameterconsumer - a consumer to further configure the parameternamepublic MavenPlugin.ConfigurationBuilder configure(String name, Consumer<MavenPlugin.ConfigurationBuilder> consumer)
name. If no parameter with
that name exists, it is created. If the parameter already exists, the consumer
can be used to further tune the nested structure.name - the name of the parameterconsumer - a consumer to further configure the parameterIllegalArgumentException - if a parameter with the same name is
registered with a single valueadd(String, Consumer)Copyright © 2021 Pivotal Software, Inc.. All rights reserved.