Interface TypeRegistry

All Superinterfaces:
ExtensibleEnumRegistry<Type>, Service

@Experimental public interface TypeRegistry extends ExtensibleEnumRegistry<Type>
Access to Type registry.

This registry provides access to all registered artifact types, both standard types provided by Maven and custom types registered through SPI provider implementations.

Since:
4.0.0
  • Method Details

    • require

      @Nonnull default Type require(@Nonnull String id)
      Obtain the Type from the specified id. If no type is known for id, the registry will create a custom Type for it.
      Specified by:
      require in interface ExtensibleEnumRegistry<Type>
      Parameters:
      id - the id of the type to retrieve
      Returns:
      the type