Package com.io7m.cedarbridge.schema.loader.api

# Interface CBLoaderType

All Superinterfaces:
  `AutoCloseable`, `Closeable`

All Known Implementing Classes:
  `CBLoader`

public interface CBLoaderType extends Closeable
A package loader.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `CBPackageType`
  `load(String from, String name)`
  Load a package.
  `void`
  `register(CBPackageType pack)`
  Register a package, making it available for loading.

  ### Methods inherited from interface java.io.Closeable

  `close`

- ## Method Details

  - ### register

    void register(CBPackageType pack)
    Register a package, making it available for loading.
    Parameters:
      `pack` - The package

  - ### load

    CBPackageType load(String from, String name) throws CBLoadFailedException
    Load a package.
    Parameters:
      `from` - The requesting package
      `name` - The target package
    Returns:
      A loaded package
    Throws:
      `CBLoadFailedException` - On errors