Package enterprises.iwakura.amber
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe attribute name for the Amber dependencies in the manifest.static final StringThe attribute name for the Amber directory in the manifest.static final StringThe attribute name for the Amber Maven repositories in the manifest.static final StringThe delimiter used to split multiple values in manifest attributes.static final StringThe path to the manifest file within a JAR or classpath. -
Method Summary
Modifier and TypeMethodDescriptionLoads all Amber manifests from the source.default AmberManifestparseManifest(Manifest manifest) Parses aManifestobject to extract Amber-specific attributes and create anAmberManifestinstance.
-
Field Details
-
MANIFEST_FILE_PATH
The path to the manifest file within a JAR or classpath.- See Also:
-
ATTRIBUTE_AMBER_DIRECTORY
The attribute name for the Amber directory in the manifest.- See Also:
-
ATTRIBUTE_AMBER_DEPENDENCIES
The attribute name for the Amber dependencies in the manifest.- See Also:
-
ATTRIBUTE_AMBER_MAVEN_REPOSITORIES
The attribute name for the Amber Maven repositories in the manifest.- See Also:
-
ATTRIBUTE_SPLITTER
The delimiter used to split multiple values in manifest attributes.- See Also:
-
-
Method Details
-
loadManifest
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
Parses aManifestobject to extract Amber-specific attributes and create anAmberManifestinstance.- Parameters:
manifest- The manifest to parse.- Returns:
- An
AmberManifestinstance if the manifest contains all Amber attributes, otherwise null.
-