Interface ApplicationAssetLoader
- All Known Subinterfaces:
GitApplicationAssetLoader
- All Known Implementing Classes:
FilesystemGitApplicationAssetLoader
,TestApplicationAssetLoader
public interface ApplicationAssetLoader
Loads the assets for a particular application as defined by the
ApplicationId
.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The name of the configuration variable for the script storage directory. -
Method Summary
Modifier and TypeMethodDescriptiongetAssetPath
(ApplicationId applicationId) Gets the assetPath
for the suppliedApplicationId
, performing any loading as needed.default Path
getAssetPath
(String applicationIdString) Defers toApplicationId.forUniqueName(String)
to find theApplicationId
.
-
Field Details
-
ELEMENT_STORAGE
The name of the configuration variable for the script storage directory.- See Also:
-
-
Method Details
-
getAssetPath
Defers toApplicationId.forUniqueName(String)
to find theApplicationId
.- Parameters:
applicationIdString
- the application id string- Returns:
- the asset path
-
getAssetPath
Gets the assetPath
for the suppliedApplicationId
, performing any loading as needed. The returnedPath
will be a location on disk from which to load the application's executable code.- Parameters:
applicationId
- theApplicationId
instance- Returns:
- the
Path
to the loaded asset
-