Package org.projectnessie.model.types
Class GenericRepositoryConfig
- java.lang.Object
-
- org.projectnessie.model.types.GenericRepositoryConfig
-
- All Implemented Interfaces:
RepositoryConfig
@Immutable public abstract class GenericRepositoryConfig extends java.lang.Object implements RepositoryConfig
SpecialRepositoryConfigreserved for cases when the actualrepository config typeis 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 Constructor Description GenericRepositoryConfig()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.util.Map<java.lang.String,java.lang.Object>getAttributes()abstract RepositoryConfig.TypegetType()Returns theRepositoryConfig.Typevalue for this repository config object.static GenericRepositoryConfigrepositoryConfigUnknownType(java.lang.String type, java.util.Map<java.lang.String,java.lang.Object> all)
-
-
-
Method Detail
-
getType
@Parameter(order=1) public abstract RepositoryConfig.Type 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
@Nullable @Nullable @Parameter(order=3) public abstract java.util.Map<java.lang.String,java.lang.Object> getAttributes()
-
repositoryConfigUnknownType
public static GenericRepositoryConfig repositoryConfigUnknownType(java.lang.String type, java.util.Map<java.lang.String,java.lang.Object> all)
-
-