Package io.quarkus.registry.config
Class RegistryQuarkusVersionsConfigImpl.Builder
java.lang.Object
io.quarkus.registry.config.RegistryQuarkusVersionsConfigImpl.Builder
- All Implemented Interfaces:
RegistryQuarkusVersionsConfig,RegistryQuarkusVersionsConfig.Mutable,JsonBuilder<RegistryQuarkusVersionsConfig>
- Enclosing class:
RegistryQuarkusVersionsConfigImpl
public static class RegistryQuarkusVersionsConfigImpl.Builder
extends Object
implements RegistryQuarkusVersionsConfig.Mutable
Builder.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.quarkus.registry.json.JsonBuilder
JsonBuilder.JsonBuilderSerializer<T>Nested classes/interfaces inherited from interface io.quarkus.registry.config.RegistryQuarkusVersionsConfig
RegistryQuarkusVersionsConfig.Mutable -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRecognizedGroupId(String recognizedGropuId) build()booleanAn expression that will be evaluated on the client side before sending a request to the registry that will indicate whether the registry recognizes a given Quarkus version or not.inthashCode()booleanIf the Quarkus version expression is provided, this method may also enforce that Quarkus versions matching the provided expressions are expected to be provided by this registry exclusively.setExclusiveProvider(boolean exclusiveProvider) setRecognizedGroupIds(Collection<String> recognizedGroupIds) setRecognizedVersionsExpression(String recognizedVersionsExpression) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.quarkus.registry.config.RegistryQuarkusVersionsConfig
mutable
-
Field Details
-
recognizedVersionsExpression
-
exclusiveProvider
protected boolean exclusiveProvider -
recognizedGroupIds
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
- Specified by:
buildin interfaceJsonBuilder<RegistryQuarkusVersionsConfig>- Specified by:
buildin interfaceRegistryQuarkusVersionsConfig.Mutable- Returns:
- an immutable copy of this configuration
-
getRecognizedVersionsExpression
Description copied from interface:RegistryQuarkusVersionsConfigAn expression that will be evaluated on the client side before sending a request to the registry that will indicate whether the registry recognizes a given Quarkus version or not.- Specified by:
getRecognizedVersionsExpressionin interfaceRegistryQuarkusVersionsConfig- Returns:
- Quarkus version filtering expression or null
-
setRecognizedVersionsExpression
public RegistryQuarkusVersionsConfig.Mutable setRecognizedVersionsExpression(String recognizedVersionsExpression) - Specified by:
setRecognizedVersionsExpressionin interfaceRegistryQuarkusVersionsConfig.Mutable
-
addRecognizedGroupId
- Specified by:
addRecognizedGroupIdin interfaceRegistryQuarkusVersionsConfig.Mutable
-
setRecognizedGroupIds
public RegistryQuarkusVersionsConfig.Mutable setRecognizedGroupIds(Collection<String> recognizedGroupIds) - Specified by:
setRecognizedGroupIdsin interfaceRegistryQuarkusVersionsConfig.Mutable
-
getRecognizedGroupIds
- Specified by:
getRecognizedGroupIdsin interfaceRegistryQuarkusVersionsConfig
-
isExclusiveProvider
public boolean isExclusiveProvider()Description copied from interface:RegistryQuarkusVersionsConfigIf the Quarkus version expression is provided, this method may also enforce that Quarkus versions matching the provided expressions are expected to be provided by this registry exclusively. This may further reduce the amount of the remote requests a client will be sending in case multiple registries have been configured.- Specified by:
isExclusiveProviderin interfaceRegistryQuarkusVersionsConfig- Returns:
- whether the registry is an exclusive provider of the Quarkus versions matching
the expression configured in
RegistryQuarkusVersionsConfig.getRecognizedVersionsExpression()
-
setExclusiveProvider
- Specified by:
setExclusiveProviderin interfaceRegistryQuarkusVersionsConfig.Mutable
-
equals
-
hashCode
public int hashCode() -
toString
-