Index

A B C D E G I J L M N P R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values

A

Amber - Class in enterprises.iwakura.amber
The entrypoint for Amber's bootstrapping functionality.
Amber() - Constructor for class enterprises.iwakura.amber.Amber
 
AmberManifest - Class in enterprises.iwakura.amber
Amber manifest containing the library directory, dependencies and repositories.
AmberManifest() - Constructor for class enterprises.iwakura.amber.AmberManifest
 
ATTRIBUTE_AMBER_DEPENDENCIES - Static variable in interface enterprises.iwakura.amber.ManifestLoader
The attribute name for the Amber dependencies in the manifest.
ATTRIBUTE_AMBER_DIRECTORY - Static variable in interface enterprises.iwakura.amber.ManifestLoader
The attribute name for the Amber directory in the manifest.
ATTRIBUTE_AMBER_MAVEN_REPOSITORIES - Static variable in interface enterprises.iwakura.amber.ManifestLoader
The attribute name for the Amber Maven repositories in the manifest.
ATTRIBUTE_SPLITTER - Static variable in interface enterprises.iwakura.amber.ManifestLoader
The delimiter used to split multiple values in manifest attributes.

B

bootstrap() - Method in class enterprises.iwakura.amber.Amber
Bootstraps dependencies as per the loaded Amber manifests with default options.
bootstrap(BootstrapOptions) - Method in class enterprises.iwakura.amber.Amber
Bootstraps dependencies as per the loaded Amber manifests with the specified options.
BootstrapOptions - Class in enterprises.iwakura.amber
Options for Amber's bootstrap process.
BootstrapOptions() - Constructor for class enterprises.iwakura.amber.BootstrapOptions
 

C

calculateChecksum(ChecksumType, Path) - Method in class enterprises.iwakura.amber.impl.ChecksumValidatorImpl
Calculate the checksum of a file using the specified checksum type.
ChecksumResult - Enum Class in enterprises.iwakura.amber
Represents the result of a checksum verification operation.
ChecksumType - Enum Class in enterprises.iwakura.amber
Enum representing different types of checksums.
checksumValidator - Variable in class enterprises.iwakura.amber.Amber
The checksum validator to validate downloaded dependencies.
ChecksumValidator - Interface in enterprises.iwakura.amber
Validates the checksum of a file against a given checksum and type.
ChecksumValidatorImpl - Class in enterprises.iwakura.amber.impl
Default implementation of ChecksumValidator.
ChecksumValidatorImpl() - Constructor for class enterprises.iwakura.amber.impl.ChecksumValidatorImpl
 
classLoader() - Static method in class enterprises.iwakura.amber.Amber
Create an Amber instance that loads manifests from the current thread's context class loader.
classLoader(ClassLoader) - Static method in class enterprises.iwakura.amber.Amber
Create an Amber instance that loads manifests from the specified class loader.
classLoader(ClassLoader, Logger) - Static method in class enterprises.iwakura.amber.Amber
Create an Amber instance that loads manifests from the specified class loader and uses the specified logger.
ClassLoaderManifestLoader - Class in enterprises.iwakura.amber.impl
Implementation of ManifestLoader to load manifest from a class loader's resources.
ClassLoaderManifestLoader() - Constructor for class enterprises.iwakura.amber.impl.ClassLoaderManifestLoader
 
ConsoleLogger - Class in enterprises.iwakura.amber.impl
Extension of PrintStreamLogger that logs to the console (System.out for info/debug and System.err for errors).
ConsoleLogger(boolean) - Constructor for class enterprises.iwakura.amber.impl.ConsoleLogger
Creates a new ConsoleLogger instance with the specified debug mode.
createConnection(String) - Method in class enterprises.iwakura.amber.impl.MavenDependencyDownloader
Prepares an HTTP GET connection with the default User-Agent.

D

debug(String) - Method in class enterprises.iwakura.amber.impl.PrintStreamLogger
 
debug(String) - Method in interface enterprises.iwakura.amber.Logger
Logs a debug message.
defaultDownloaders() - Static method in interface enterprises.iwakura.amber.DependencyDownloader
Provides a map of default downloaders for each supported repository type.
dependencies - Variable in class enterprises.iwakura.amber.AmberManifest
The list of dependencies to download.
Dependency - Class in enterprises.iwakura.amber
Represents a dependency with its notation, group ID, name, and version.
Dependency(String) - Constructor for class enterprises.iwakura.amber.Dependency
Constructs a Dependency object by parsing the given notation.
DependencyDownloader - Interface in enterprises.iwakura.amber
Interface for downloading dependencies and their checksums from repositories.
directory - Variable in class enterprises.iwakura.amber.AmberManifest
The directory where dependencies should be stored.
downloadChecksum(Dependency, Repository, ChecksumType) - Method in interface enterprises.iwakura.amber.DependencyDownloader
Downloads the checksum for the specified dependency from the given repository.
downloadChecksum(Dependency, Repository, ChecksumType) - Method in class enterprises.iwakura.amber.impl.MavenDependencyDownloader
 
downloaders - Variable in class enterprises.iwakura.amber.Amber
The map of repository types to their corresponding dependency downloaders.
downloadJar(Dependency, Repository, Path) - Method in interface enterprises.iwakura.amber.DependencyDownloader
Downloads the jar file for the specified dependency from the given repository and saves it to the specified file path.
downloadJar(Dependency, Repository, Path) - Method in class enterprises.iwakura.amber.impl.MavenDependencyDownloader
 
DownloadResult - Class in enterprises.iwakura.amber
Represents the result of a download operation, indicating success or failure and providing an error message if applicable.
DownloadResult() - Constructor for class enterprises.iwakura.amber.DownloadResult
 
downloadVersionOverrideFromMavenMetadata(Dependency, Repository) - Method in class enterprises.iwakura.amber.impl.MavenDependencyDownloader
Tries to download and parse maven-metadata.xml to find a version override for the given dependency.

E

enterprises.iwakura.amber - package enterprises.iwakura.amber
 
enterprises.iwakura.amber.impl - package enterprises.iwakura.amber.impl
 
error(String) - Static method in class enterprises.iwakura.amber.DownloadResult
Creates a DownloadResult representing a failed download with the provided error message.
error(String) - Static method in class enterprises.iwakura.amber.StringDownloadResult
Creates a StringDownloadResult representing a failed download with the provided error message.
error(String, Throwable) - Method in class enterprises.iwakura.amber.impl.PrintStreamLogger
 
error(String, Throwable) - Method in interface enterprises.iwakura.amber.Logger
Logs an error message along with an optional throwable (exception).

G

getChecksumDownloadPath(Dependency, String, ChecksumType) - Method in class enterprises.iwakura.amber.Repository
Generates the full download path for the checksum file of a given dependency's JAR file.
getDownloadPathDirectory(Dependency) - Method in class enterprises.iwakura.amber.Repository
Generates the download path directory for a given dependency.
getFileExtension() - Method in enum class enterprises.iwakura.amber.ChecksumType
Gets the file extension associated with the checksum type.
getFileName() - Method in class enterprises.iwakura.amber.Dependency
Generates the expected filename for the dependency's JAR file.
getGroupIdAsPath() - Method in class enterprises.iwakura.amber.Dependency
Converts the group ID to a path format by replacing dots with slashes.
getJarDownloadPath(Dependency, String) - Method in class enterprises.iwakura.amber.Repository
Generates the full download path for the JAR file of a given dependency, including the filename.
getPrefferedLibraryDirectory(AmberManifest) - Method in class enterprises.iwakura.amber.BootstrapOptions
Get the preferred library directory, using the override if set, otherwise falling back to the manifest's directory.

I

info(String) - Method in class enterprises.iwakura.amber.impl.PrintStreamLogger
 
info(String) - Method in interface enterprises.iwakura.amber.Logger
Logs an informational message.
isDependencyDownloaded(Dependency, AmberManifest, BootstrapOptions) - Method in class enterprises.iwakura.amber.Amber
Checks if the specified dependency is already downloaded in the preferred library directory as per the manifest and options.

J

JarFileManifestLoader - Class in enterprises.iwakura.amber.impl
Implementation of ManifestLoader to load manifest from jar files.
JarFileManifestLoader() - Constructor for class enterprises.iwakura.amber.impl.JarFileManifestLoader
 
jarFilePaths - Variable in class enterprises.iwakura.amber.impl.JarFileManifestLoader
The list of jar file paths to load manifests from.
jarFiles(List<Path>) - Static method in class enterprises.iwakura.amber.Amber
Create an Amber instance that loads manifests from the specified list of jar file paths.
jarFiles(List<Path>, Logger) - Static method in class enterprises.iwakura.amber.Amber
Create an Amber instance that loads manifests from the specified list of jar file paths and uses the specified logger.

L

loadManifest() - Method in class enterprises.iwakura.amber.impl.ClassLoaderManifestLoader
 
loadManifest() - Method in class enterprises.iwakura.amber.impl.JarFileManifestLoader
 
loadManifest() - Method in interface enterprises.iwakura.amber.ManifestLoader
Loads all Amber manifests from the source.
logger - Variable in class enterprises.iwakura.amber.Amber
The logger to log messages during the bootstrapping process.
Logger - Interface in enterprises.iwakura.amber
Logger interface for Amber.

M

MANIFEST_FILE_PATH - Static variable in interface enterprises.iwakura.amber.ManifestLoader
The path to the manifest file within a JAR or classpath.
manifestLoader - Variable in class enterprises.iwakura.amber.Amber
The manifest loader to load Amber manifests.
ManifestLoader - Interface in enterprises.iwakura.amber
Interface for loading Amber manifests from various sources, such as ClassLoaderManifestLoader and JarFileManifestLoader
MATCH - Enum constant in enum class enterprises.iwakura.amber.ChecksumResult
The checksum matches the expected value.
MAVEN - Enum constant in enum class enterprises.iwakura.amber.RepositoryType
 
MavenDependencyDownloader - Class in enterprises.iwakura.amber.impl
Implementation of DependencyDownloader that downloads dependencies from any Maven repositories.
MavenDependencyDownloader() - Constructor for class enterprises.iwakura.amber.impl.MavenDependencyDownloader
 
MD5 - Enum constant in enum class enterprises.iwakura.amber.ChecksumType
 
MISMATCH - Enum constant in enum class enterprises.iwakura.amber.ChecksumResult
The checksum does not match the expected value.

N

NOT_FOUND - Enum constant in enum class enterprises.iwakura.amber.ChecksumResult
The checksum file was not found.

P

parseManifest(Manifest) - Method in interface enterprises.iwakura.amber.ManifestLoader
Parses a Manifest object to extract Amber-specific attributes and create an AmberManifest instance.
PrintStreamLogger - Class in enterprises.iwakura.amber.impl
Implementation of Logger that logs messages to specified PrintStream instances.
PrintStreamLogger() - Constructor for class enterprises.iwakura.amber.impl.PrintStreamLogger
 
processManifest(AmberManifest, BootstrapOptions) - Method in class enterprises.iwakura.amber.Amber
Processes a single Amber manifest to download its dependencies as per the specified options.

R

repositories - Variable in class enterprises.iwakura.amber.AmberManifest
The list of repositories to use for downloading dependencies.
Repository - Class in enterprises.iwakura.amber
Represents a repository from which dependencies can be downloaded.
Repository() - Constructor for class enterprises.iwakura.amber.Repository
 
RepositoryType - Enum Class in enterprises.iwakura.amber
Enum representing different types of repositories.

S

SHA1 - Enum constant in enum class enterprises.iwakura.amber.ChecksumType
 
SHA256 - Enum constant in enum class enterprises.iwakura.amber.ChecksumType
 
SHA512 - Enum constant in enum class enterprises.iwakura.amber.ChecksumType
 
StringDownloadResult - Class in enterprises.iwakura.amber
Extends DownloadResult to include the downloaded content as a String.
StringDownloadResult(boolean, String, String) - Constructor for class enterprises.iwakura.amber.StringDownloadResult
Creates a new StringDownloadResult.
success() - Static method in class enterprises.iwakura.amber.DownloadResult
Creates a DownloadResult representing a successful download.
success(String) - Static method in class enterprises.iwakura.amber.StringDownloadResult
Creates a StringDownloadResult representing a successful download with the provided content.

T

toString() - Method in class enterprises.iwakura.amber.Dependency
Returns the string representation of the dependency, which is its notation.

U

UNSUPPORTED - Enum constant in enum class enterprises.iwakura.amber.ChecksumResult
The checksum algorithm is unsupported by the JVM/system.
USER_AGENT - Static variable in interface enterprises.iwakura.amber.DependencyDownloader
A default User-Agent string for HTTP requests to identify the Amber library.

V

validate(ChecksumType, String, Path) - Method in interface enterprises.iwakura.amber.ChecksumValidator
Validates the checksum of the given file.
validate(ChecksumType, String, Path) - Method in class enterprises.iwakura.amber.impl.ChecksumValidatorImpl
 
valueOf(String) - Static method in enum class enterprises.iwakura.amber.ChecksumResult
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class enterprises.iwakura.amber.ChecksumType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class enterprises.iwakura.amber.RepositoryType
Returns the enum constant of this class with the specified name.
values() - Static method in enum class enterprises.iwakura.amber.ChecksumResult
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class enterprises.iwakura.amber.ChecksumType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class enterprises.iwakura.amber.RepositoryType
Returns an array containing the constants of this enum class, in the order they are declared.
Version - Class in enterprises.iwakura.amber
Auto-generated version class.
VERSION - Static variable in class enterprises.iwakura.amber.Version
Project's current version.
A B C D E G I J L M N P R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values