TYPE - the configurable object type.public static final class ProxyConfiguration.Builder<TYPE> extends Object
| Constructor and Description |
|---|
ProxyConfiguration.Builder(ProxyConfiguration.Configurable<? extends TYPE> configurable)
Constructor.
|
ProxyConfiguration.Builder(ProxyConfiguration.Configurable<? extends TYPE> configurable,
ProxyConfiguration initialConfiguration)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
TYPE |
set()
Sets the configuration and returns the configurable object.
|
ProxyConfiguration.Builder<TYPE> |
with(ProxyConfiguration configuration)
Applies the specified configuration to this builder.
|
ProxyConfiguration.Builder<TYPE> |
withSharedFields()
Sets the shared field names to empty, that is, no field is shared.
|
ProxyConfiguration.Builder<TYPE> |
withSharedFields(List<String> fieldNames)
Sets the shared field names.
|
ProxyConfiguration.Builder<TYPE> |
withSharedFields(String... fieldNames)
Sets the shared field names.
|
public ProxyConfiguration.Builder(@NotNull
ProxyConfiguration.Configurable<? extends TYPE> configurable)
configurable - the configurable instance.public ProxyConfiguration.Builder(@NotNull
ProxyConfiguration.Configurable<? extends TYPE> configurable,
@NotNull
ProxyConfiguration initialConfiguration)
configurable - the configurable instance.initialConfiguration - the initial proxy configuration.@NotNull public TYPE set()
@NotNull public ProxyConfiguration.Builder<TYPE> with(@Nullable ProxyConfiguration configuration)
configuration - the proxy configuration.@NotNull public ProxyConfiguration.Builder<TYPE> withSharedFields()
@NotNull public ProxyConfiguration.Builder<TYPE> withSharedFields(@Nullable String... fieldNames)
fieldNames - the field names.@NotNull public ProxyConfiguration.Builder<TYPE> withSharedFields(@Nullable List<String> fieldNames)
fieldNames - the field names.