A bundle storage view is a configured view to a backing bundle storage. It can be used to retrieve the actual bundles and informations related to bundles contained in a given storage.
Based on the configuration that was used to instantiate it, a bundle storage view may perform different operations and return different results. E.g. if it uses a server storage, but is configured to be offline, then it won't download bundles from the associated server.
Instances of bundle storage views can be retrieved from NestBundleStorageConfiguration.
Each bundle storage view has a StorageViewKey that uniquely identifies its backing storage and configured
behaviour. These keys may be serialized and used to retrieve the storage view again using
NestBundleStorageConfiguration.getBundleStorageViewForKey(
This interface is not to be implemented by clients.
public NestRepositoryBundle | getBundle( Gets the bundle for the given bundle identifier. |
public default BundleInformation | getBundleInformation( Gets the information about a given bundle in the storage view. |
public BundleStorage | Gets the backing bundle storage object. |
public StorageViewKey | Gets the storage view key of this view. |
public Map< | Loads the external archives from the argument dependency information. |
public Map< | lookupBundleIdentifiers( Looks up the identifiers of bundles that have the same bundle name as the
argument. |
public Set< | lookupBundleVersions( Looks up the identifiers of bundles which are present in this bundle storage view and only differ (or equal) in
version number to the argument. |
The bundle storage view is asked to locate and load the bundle with the given identifier. It will execute the operation in an implementation dependent manner for the storage view. If the bundle was not found, or cannot be loaded, BundleLoadingFailedException will be thrown.
The storage view may require the bundle identifier to have a version qualifier.
null
.The bundle storage view will attempt to locate and load the information of the bundle for the given identifier. This may include loading the bundle itself, or only the information related meta-data. The operation is executed in an implementation dependent manner based on the storage view.
The storage view may require the bundle identifier to have a version qualifier.
null
.In general, clients don't need to use the backing storage directly.
The method works the same way as
NestBundleStorageConfiguration.loadExternalArchives(
E.g. if this bundle storage is a server bundle storage then the resources may be loaded from the mirrors on the associated repository server.
It can be advantageous to use this method instead of the one in NestBundleStorageConfiguration when resolving dependencies if an existing bundle, so the external dependencies are resolved in a reliable manner.
null
.This method will query all bundles that are present with the given name in this bundle storage view. The found bundle identifiers are returned in a map that contains version numbers mapped to the bundle identifiers for that version. The returned map is ordered by descending order of version numbers.
null
.This method will search for all bundles present in the storage view with the same bundle name and qualifiers (except the version qualifier). The found bundle identifiers are returned in a set that is ordered by descending version numbers.
If the argument has a version qualifier, it is ignored by this method.
null
.