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 StringThe name of the configuration variable for the script storage directory. -
Method Summary
Modifier and TypeMethodDescriptiongetAssetPath(ApplicationId applicationId) Gets the assetPathfor the suppliedApplicationId, performing any loading as needed.default PathgetAssetPath(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 assetPathfor the suppliedApplicationId, performing any loading as needed. The returnedPathwill be a location on disk from which to load the application's executable code.- Parameters:
applicationId- theApplicationIdinstance- Returns:
- the
Pathto the loaded asset
-