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.

See Also:
  • Field Details

    • id

      protected final String id
    • platform

      protected final boolean platform
    • bom

      protected final io.quarkus.maven.dependency.ArtifactCoords bom
    • metadata

      protected final Map<String,Object> metadata
  • Constructor Details

  • Method Details

    • getId

      public String getId()
      Description copied from interface: ExtensionOrigin
      Origin ID. E.g. GAV of the descriptor.
      Specified by:
      getId in interface ExtensionOrigin
      Returns:
      origin ID
    • getBom

      public io.quarkus.maven.dependency.ArtifactCoords getBom()
      Description copied from interface: ExtensionOrigin
      BOM 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:
      getBom in interface ExtensionOrigin
      Returns:
      BOM coordinates
    • isPlatform

      public boolean isPlatform()
      Description copied from interface: ExtensionOrigin
      Whether the origin represents a platform.
      Specified by:
      isPlatform in interface ExtensionOrigin
      Returns:
      true in case the origin is a platform, otherwise - false
    • getMetadata

      public Map<String,Object> getMetadata()
      Specified by:
      getMetadata in interface ExtensionOrigin
      Returns:
      optional metadata attached to the origin
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object