public interface AssetRegistry
Asset
s.Modifier and Type | Method and Description |
---|---|
java.util.List<Asset> |
discoverFurtherAssets(MemoizedFile dir,
java.lang.String requirePrefix,
java.util.List<Asset> implicitDependencies)
The method retrieves the List of
Asset s identified by the AssetPlugins available for the current AssetContainer ,
specified by a MemoizedFile . |
Asset |
getRegisteredAsset(java.lang.String requirePath)
The method retrieves the registered
Asset identified by the specified require path within the current registry. |
java.util.Set<Asset> |
getRegisteredAssets()
Returns all Assets registered with the Asset registry
|
java.util.Set<LinkedAsset> |
getRegisteredSeedAssets()
Returns all Assets registered as seed assets with the Asset registry
|
boolean |
hasRegisteredAsset(java.lang.String requirePath)
The method verifies whether the specified require path is the valid require path for one of its registered assets.
|
boolean |
hasSeedAsset(java.lang.String requirePath)
The method verifies whether the specified require path is the valid require path for one of its seed assets.
|
void |
promoteRegisteredAssetToSeed(LinkedAsset asset)
The method adds an already registered
LinkedAsset to the list of seed assets. |
void |
registerAsset(Asset asset)
The method registers the specified
LinkedAsset by adding it to the assets for the current directory, provided it has not been
registered beforehand. |
void |
registerSeedAsset(LinkedAsset asset)
The method adds the specified
LinkedAsset to the existing list of seed assets. |
void registerSeedAsset(LinkedAsset asset)
LinkedAsset
to the existing list of seed assets.asset
- a LinkedAsset object that will be added to the existing list of seed assetsvoid promoteRegisteredAssetToSeed(LinkedAsset asset)
LinkedAsset
to the list of seed assets.asset
- an already registered LinkedAsset object that will be added to the list of seed assetsvoid registerAsset(Asset asset)
LinkedAsset
by adding it to the assets for the current directory, provided it has not been
registered beforehand.asset
- a LinkedAsset object that will be registered by adding it to the assets for the current directoryboolean hasSeedAsset(java.lang.String requirePath)
requirePath
- a String object that will be verified to establish whether it denotes an Asset part of the seed assets for the registry.boolean hasRegisteredAsset(java.lang.String requirePath)
requirePath
- a String object that will be verified to establish whether it denotes an Asset part of the registered assets
for the registry.Asset getRegisteredAsset(java.lang.String requirePath)
Asset
identified by the specified require path within the current registry.requirePath
- a String object that will determine which Asset will be retrievedjava.util.Set<Asset> getRegisteredAssets()
java.util.Set<LinkedAsset> getRegisteredSeedAssets()
java.util.List<Asset> discoverFurtherAssets(MemoizedFile dir, java.lang.String requirePrefix, java.util.List<Asset> implicitDependencies)
Asset
s identified by the AssetPlugins available for the current AssetContainer
,
specified by a MemoizedFile
.dir
- a MemoizedFile object specifying the assetContainer for which the AssetPlugins will be determinedrequirePrefix
- a String object specifying what require prefix the newly discovered Assets should adhere toimplicitDependencies
- a List of Assets specifying the already determined implicit dependencies for the container