Interface ManifestLoader

All Known Implementing Classes:
ClassLoaderManifestLoader, JarFileManifestLoader

public interface ManifestLoader
Interface for loading Amber manifests from various sources, such as ClassLoaderManifestLoader and JarFileManifestLoader
  • Field Details

    • MANIFEST_FILE_PATH

      static final String MANIFEST_FILE_PATH
      The path to the manifest file within a JAR or classpath.
      See Also:
    • ATTRIBUTE_AMBER_DIRECTORY

      static final String ATTRIBUTE_AMBER_DIRECTORY
      The attribute name for the Amber directory in the manifest.
      See Also:
    • ATTRIBUTE_AMBER_DEPENDENCIES

      static final String ATTRIBUTE_AMBER_DEPENDENCIES
      The attribute name for the Amber dependencies in the manifest.
      See Also:
    • ATTRIBUTE_AMBER_MAVEN_REPOSITORIES

      static final String ATTRIBUTE_AMBER_MAVEN_REPOSITORIES
      The attribute name for the Amber Maven repositories in the manifest.
      See Also:
    • ATTRIBUTE_SPLITTER

      static final String ATTRIBUTE_SPLITTER
      The delimiter used to split multiple values in manifest attributes.
      See Also:
  • Method Details

    • loadManifest

      List<AmberManifest> loadManifest() throws IOException
      Loads all Amber manifests from the source.
      Returns:
      A list of loaded Amber manifests.
      Throws:
      IOException - If an I/O error occurs during loading.
    • parseManifest

      default AmberManifest parseManifest(Manifest manifest)
      Parses a Manifest object to extract Amber-specific attributes and create an AmberManifest instance.
      Parameters:
      manifest - The manifest to parse.
      Returns:
      An AmberManifest instance if the manifest contains all Amber attributes, otherwise null.