Skip to content

Commit

Permalink
Add ServicesConfigBlock singleton (#1150)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoenig10 committed Mar 25, 2024
1 parent 8fd6505 commit 42ae902
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* fully-specified {@link ServiceConfiguration} objects.
*/
@DoNotLog
@Immutable
@Immutable(singleton = true)
@JsonSerialize(as = ImmutableServicesConfigBlock.class)
@JsonDeserialize(builder = ServicesConfigBlock.Builder.class)
@ImmutablesStyle
Expand Down Expand Up @@ -105,6 +105,10 @@ public abstract class ServicesConfigBlock {
@JsonAlias("fallback-to-common-name-verification")
public abstract Optional<Boolean> defaultFallbackToCommonNameVerification();

public static ServicesConfigBlock empty() {
return ImmutableServicesConfigBlock.of();
}

public static Builder builder() {
return new Builder();
}
Expand Down

0 comments on commit 42ae902

Please sign in to comment.