Package io.quarkus.registry.catalog
Interface Extension
-
- All Known Subinterfaces:
Extension.Mutable
- All Known Implementing Classes:
ExtensionImpl,ExtensionImpl.Builder
public interface Extension
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceExtension.Mutable
-
Field Summary
Fields Modifier and Type Field Description static StringMD_BUILT_WITH_QUARKUS_COREstatic StringMD_CATEGORIESstatic StringMD_GUIDEstatic StringMD_KEYWORDSstatic StringMD_NESTED_CODESTART_ARTIFACTstatic StringMD_NESTED_CODESTART_KINDstatic StringMD_NESTED_CODESTART_LANGUAGESstatic StringMD_NESTED_CODESTART_NAMEstatic StringMD_SHORT_NAMEstatic StringMD_STATUSstatic StringMD_UNLISTED
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static Extension.Mutablebuilder()static ExtensionfromFile(Path path)Read config from the specified fileio.quarkus.maven.dependency.ArtifactCoordsgetArtifact()StringgetDescription()Map<String,Object>getMetadata()StringgetName()List<ExtensionOrigin>getOrigins()default booleanhasPlatformOrigin()default StringmanagementKey()default Extension.Mutablemutable()static Extension.MutablemutableFromFile(Path path)Read config from the specified filedefault voidpersist(Path p)Persist this configuration to the specified file.
-
-
-
Field Detail
-
MD_SHORT_NAME
static final String MD_SHORT_NAME
- See Also:
- Constant Field Values
-
MD_NESTED_CODESTART_NAME
static final String MD_NESTED_CODESTART_NAME
- See Also:
- Constant Field Values
-
MD_NESTED_CODESTART_LANGUAGES
static final String MD_NESTED_CODESTART_LANGUAGES
- See Also:
- Constant Field Values
-
MD_NESTED_CODESTART_KIND
static final String MD_NESTED_CODESTART_KIND
- See Also:
- Constant Field Values
-
MD_NESTED_CODESTART_ARTIFACT
static final String MD_NESTED_CODESTART_ARTIFACT
- See Also:
- Constant Field Values
-
MD_GUIDE
static final String MD_GUIDE
- See Also:
- Constant Field Values
-
MD_KEYWORDS
static final String MD_KEYWORDS
- See Also:
- Constant Field Values
-
MD_UNLISTED
static final String MD_UNLISTED
- See Also:
- Constant Field Values
-
MD_CATEGORIES
static final String MD_CATEGORIES
- See Also:
- Constant Field Values
-
MD_STATUS
static final String MD_STATUS
- See Also:
- Constant Field Values
-
MD_BUILT_WITH_QUARKUS_CORE
static final String MD_BUILT_WITH_QUARKUS_CORE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
String getName()
-
getDescription
String getDescription()
-
getArtifact
io.quarkus.maven.dependency.ArtifactCoords getArtifact()
-
getOrigins
List<ExtensionOrigin> getOrigins()
-
hasPlatformOrigin
default boolean hasPlatformOrigin()
-
managementKey
default String managementKey()
-
mutable
default Extension.Mutable mutable()
-
persist
default void persist(Path p) throws IOException
Persist this configuration to the specified file.- Parameters:
p- Target path- Throws:
IOException- if the specified file can not be written to.
-
builder
static Extension.Mutable builder()
- Returns:
- a new mutable instance
-
fromFile
static Extension fromFile(Path path) throws IOException
Read config from the specified file- Parameters:
path- File to read from (yaml or json)- Returns:
- read-only Extension object
- Throws:
IOException
-
mutableFromFile
static Extension.Mutable mutableFromFile(Path path) throws IOException
Read config from the specified file- Parameters:
path- File to read from (yaml or json)- Returns:
- read-only Extension object (empty/default for an empty file)
- Throws:
IOException
-
-