Package io.quarkus.registry.catalog
Class ExtensionOriginImpl
- java.lang.Object
-
- io.quarkus.registry.catalog.ExtensionOriginImpl
-
- All Implemented Interfaces:
ExtensionOrigin
- Direct Known Subclasses:
ExtensionCatalogImpl
public class ExtensionOriginImpl extends Object implements ExtensionOrigin
Asymmetric data manipulation: Deserialization always uses the builder; Serialization always uses the Impl.Note the scope for IdentityInfo is
ExtensionOrigin, to cover both the builder and the impl.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExtensionOriginImpl.BuilderBuilder.-
Nested classes/interfaces inherited from interface io.quarkus.registry.catalog.ExtensionOrigin
ExtensionOrigin.Mutable
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedExtensionOriginImpl(ExtensionOriginImpl.Builder builder)protectedExtensionOriginImpl(String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)io.quarkus.maven.dependency.ArtifactCoordsgetBom()BOM that should be imported by a project using extensions from this origin.StringgetId()Origin ID.Map<String,Object>getMetadata()inthashCode()booleanisPlatform()Whether the origin represents a platform.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.quarkus.registry.catalog.ExtensionOrigin
mutable
-
-
-
-
Constructor Detail
-
ExtensionOriginImpl
protected ExtensionOriginImpl(String id)
-
ExtensionOriginImpl
protected ExtensionOriginImpl(ExtensionOriginImpl.Builder builder)
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:ExtensionOriginOrigin ID. E.g. GAV of the descriptor.- Specified by:
getIdin interfaceExtensionOrigin- Returns:
- origin ID
-
getBom
public io.quarkus.maven.dependency.ArtifactCoords getBom()
Description copied from interface:ExtensionOriginBOM that should be imported by a project using extensions from this origin. This method normally won't return null. Given that any Quarkus project would typically be importing at least some version of io.quarkus:quarkus-bom even if extensions used in the project aren't managed by the quarkus-bom/ the project- Specified by:
getBomin interfaceExtensionOrigin- Returns:
- BOM coordinates
-
isPlatform
public boolean isPlatform()
Description copied from interface:ExtensionOriginWhether the origin represents a platform.- Specified by:
isPlatformin interfaceExtensionOrigin- Returns:
- true in case the origin is a platform, otherwise - false
-
getMetadata
public Map<String,Object> getMetadata()
- Specified by:
getMetadatain interfaceExtensionOrigin- Returns:
- optional metadata attached to the origin
-
-