Package org.projectnessie.model.types
Class GenericRepositoryConfig
java.lang.Object
org.projectnessie.model.types.GenericRepositoryConfig
- All Implemented Interfaces:
RepositoryConfig
Special
RepositoryConfig reserved for cases when the actual
repository config type is not available.
Nessie servers cannot properly handle unknown repository
config types, but with this "fallback" clients can at least deserialize the repository config
object and do not fail hard / error out.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.projectnessie.model.RepositoryConfig
RepositoryConfig.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract RepositoryConfig.TypegetType()Returns theRepositoryConfig.Typevalue for this repository config object.static GenericRepositoryConfigrepositoryConfigUnknownType(String type, Map<String, Object> all)
-
Constructor Details
-
GenericRepositoryConfig
public GenericRepositoryConfig()
-
-
Method Details
-
getType
Description copied from interface:RepositoryConfigReturns theRepositoryConfig.Typevalue for this repository config object.The name of the returned value should match the JSON type name used for serializing the repository config object.
- Specified by:
getTypein interfaceRepositoryConfig
-
getAttributes
-
repositoryConfigUnknownType
public static GenericRepositoryConfig repositoryConfigUnknownType(String type, Map<String, Object> all)
-