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 Modifier and Type Field Description protected booleanexclusiveProviderprotected Collection<String>recognizedGroupIdsprotected StringrecognizedVersionsExpression
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RegistryQuarkusVersionsConfig.MutableaddRecognizedGroupId(String recognizedGropuId)RegistryQuarkusVersionsConfigImplbuild()booleanequals(Object o)Collection<String>getRecognizedGroupIds()StringgetRecognizedVersionsExpression()An 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()booleanisExclusiveProvider()If 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.RegistryQuarkusVersionsConfig.MutablesetExclusiveProvider(boolean exclusiveProvider)RegistryQuarkusVersionsConfig.MutablesetRecognizedGroupIds(Collection<String> recognizedGroupIds)RegistryQuarkusVersionsConfig.MutablesetRecognizedVersionsExpression(String recognizedVersionsExpression)StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.quarkus.registry.config.RegistryQuarkusVersionsConfig
mutable
-
-
-
-
Field Detail
-
recognizedVersionsExpression
protected String recognizedVersionsExpression
-
exclusiveProvider
protected boolean exclusiveProvider
-
recognizedGroupIds
protected Collection<String> recognizedGroupIds
-
-
Method Detail
-
build
public RegistryQuarkusVersionsConfigImpl build()
- Specified by:
buildin interfaceJsonBuilder<RegistryQuarkusVersionsConfig>- Specified by:
buildin interfaceRegistryQuarkusVersionsConfig.Mutable- Returns:
- an immutable copy of this configuration
-
getRecognizedVersionsExpression
public String 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
public RegistryQuarkusVersionsConfig.Mutable addRecognizedGroupId(String recognizedGropuId)
- Specified by:
addRecognizedGroupIdin interfaceRegistryQuarkusVersionsConfig.Mutable
-
setRecognizedGroupIds
public RegistryQuarkusVersionsConfig.Mutable setRecognizedGroupIds(Collection<String> recognizedGroupIds)
- Specified by:
setRecognizedGroupIdsin interfaceRegistryQuarkusVersionsConfig.Mutable
-
getRecognizedGroupIds
public Collection<String> 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
public RegistryQuarkusVersionsConfig.Mutable setExclusiveProvider(boolean exclusiveProvider)
- Specified by:
setExclusiveProviderin interfaceRegistryQuarkusVersionsConfig.Mutable
-
-