Package com.io7m.coffeepick.jdk_java_net

# Class OJNRepositoryProvider

java.lang.Object
com.io7m.coffeepick.jdk_java_net.OJNRepositoryProvider

All Implemented Interfaces:
  `RuntimeRepositoryProviderType`

    public final class OJNRepositoryProvider
    extends java.lang.Object
    implements RuntimeRepositoryProviderType

A jdk.java.net repository provider.

- ## Constructor Summary

  Constructors
  Constructor | Description
  --- | ---
  `OJNRepositoryProvider()` | Construct a provider.

- ## Method Summary

  Modifier and Type | Method | Description
  --- | --- | ---
  `java.lang.String` | `name()` |
  `RuntimeRepositoryType` | `openRepository​(RuntimeRepositoryContextType context)` | Create a new repository.
  `java.net.URI` | `uri()` |

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### OJNRepositoryProvider

    public OJNRepositoryProvider()
    Construct a provider.

- ## Method Details

  - ### uri

    public java.net.URI uri()
    Specified by:
      `uri` in interface `RuntimeRepositoryProviderType`
    Returns:
      The URI that uniquely identifies this repository

  - ### name

    public java.lang.String name()
    Specified by:
      `name` in interface `RuntimeRepositoryProviderType`
    Returns:
      The name of the repository

  - ### openRepository

    public RuntimeRepositoryType openRepository​(RuntimeRepositoryContextType context) throws java.io.IOException
    Description copied from interface: `RuntimeRepositoryProviderType`
    Create a new repository.
    Specified by:
      `openRepository` in interface `RuntimeRepositoryProviderType`
    Parameters:
      `context` - The runtime repository context
    Returns:
      A new repository
    Throws:
      `java.io.IOException` - On I/O errors