Package io.quarkus.registry.config
Class RegistryConfigImpl
- java.lang.Object
-
- io.quarkus.registry.config.RegistryConfigImpl
-
- All Implemented Interfaces:
RegistryConfig
public class RegistryConfigImpl extends Object implements RegistryConfig
Asymmetric data manipulation:- Deserialization always uses the builder.
RegistryConfigImpl.BuilderDeserializeris used to create builders from lists containing a mix of raw strings or nested objects. RegistryConfigImpl.Serializeris used as a serializer to suppress default field values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRegistryConfigImpl.Builder-
Nested classes/interfaces inherited from interface io.quarkus.registry.config.RegistryConfig
RegistryConfig.Mutable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)RegistryDescriptorConfiggetDescriptor()How to get the descriptor from the registry.Map<String,Object>getExtra()Custom registry client configuration.StringgetId()Registry ID.RegistryMavenConfiggetMaven()Registry client Maven related configuration, such as repository URL, etc.RegistryNonPlatformExtensionsConfiggetNonPlatformExtensions()How to get catalogs of non-platform extensions from the registry.RegistryPlatformsConfiggetPlatforms()How get platform catalogs from the registry.RegistryQuarkusVersionsConfiggetQuarkusVersions()Registry specific Quarkus version filtering configuration.StringgetUpdatePolicy()How often (if ever) the locally cached catalogs provided by the registry should be refreshed.inthashCode()booleanisEnabled()Whether this registry should be included in the active registry list.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.quarkus.registry.config.RegistryConfig
mutable, persist
-
-
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:RegistryConfigRegistry ID. Mainly used in the logging and error messages to refer to a specific registry.- Specified by:
getIdin interfaceRegistryConfig- Returns:
- registry id, never null
-
isEnabled
public boolean isEnabled()
Description copied from interface:RegistryConfigWhether this registry should be included in the active registry list. If the registry is disabled the client won't be sending any requests to it.- Specified by:
isEnabledin interfaceRegistryConfig- Returns:
- true, if the registry is enabled, otherwise - false
-
getUpdatePolicy
public String getUpdatePolicy()
Description copied from interface:RegistryConfigHow often (if ever) the locally cached catalogs provided by the registry should be refreshed. The value returned by the method should currently bealways,daily(default),interval:XXX(in minutes) ornever(only if it doesn't exist locally).- Specified by:
getUpdatePolicyin interfaceRegistryConfig- Returns:
- update policy
-
getDescriptor
public RegistryDescriptorConfig getDescriptor()
Description copied from interface:RegistryConfigHow to get the descriptor from the registry. A registry descriptor is the default client configuration for the registry that can be customized on the client side, if necessary.- Specified by:
getDescriptorin interfaceRegistryConfig- Returns:
- registry descriptor related configuration
-
getPlatforms
public RegistryPlatformsConfig getPlatforms()
Description copied from interface:RegistryConfigHow get platform catalogs from the registry.- Specified by:
getPlatformsin interfaceRegistryConfig- Returns:
- platform catalog related configuration
-
getNonPlatformExtensions
public RegistryNonPlatformExtensionsConfig getNonPlatformExtensions()
Description copied from interface:RegistryConfigHow to get catalogs of non-platform extensions from the registry.- Specified by:
getNonPlatformExtensionsin interfaceRegistryConfig- Returns:
- non-platform extension catalog related configuration
-
getMaven
public RegistryMavenConfig getMaven()
Description copied from interface:RegistryConfigRegistry client Maven related configuration, such as repository URL, etc.- Specified by:
getMavenin interfaceRegistryConfig- Returns:
- registry client Maven related configuration
-
getQuarkusVersions
public RegistryQuarkusVersionsConfig getQuarkusVersions()
Description copied from interface:RegistryConfigRegistry specific Quarkus version filtering configuration. For example, a given registry may provide platform and extension information that are based on specific versions of Quarkus core. Properly configured configured may reduce the amount of unnecessary remote registry requests.- Specified by:
getQuarkusVersionsin interfaceRegistryConfig- Returns:
- Quarkus version filtering configuration
-
getExtra
public Map<String,Object> getExtra()
Description copied from interface:RegistryConfigCustom registry client configuration.- Specified by:
getExtrain interfaceRegistryConfig- Returns:
- custom registry client configuration
-
-