Interface JSResolvableBundleAsset
- All Superinterfaces:
JSBundleAsset,JSBundleObject
- All Known Subinterfaces:
JSModule
Represents a
JSBundleAsset that is selected/resolved from a pool of
equivalent objects of the same type.
For example, several JSModule objects may point to the same physical
asset living in different bundles; each of those objects can be requested
using its JSBundleAsset URL. Only the resolved instance chosen by a
predefined algorithm, however, is eligible to be requested via the JSResolvableBundleAsset URL. This is useful to disambiguate duplicated
assets.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the asset's resolved ID; this differs from the canonical ID defined in theJSBundleAsset.Returns the asset's resolved URL; this differs from the canonical URL defined in theJSBundleAsset.Methods inherited from interface com.liferay.frontend.js.loader.modules.extender.npm.JSBundleAsset
getInputStream, getURLMethods inherited from interface com.liferay.frontend.js.loader.modules.extender.npm.JSBundleObject
getId, getName
-
Method Details
-
getResolvedId
String getResolvedId()Returns the asset's resolved ID; this differs from the canonical ID defined in theJSBundleAsset. See this class's package summary for more information about resolved assets.- Returns:
- the asset's resolved ID
-
getResolvedURL
String getResolvedURL()Returns the asset's resolved URL; this differs from the canonical URL defined in theJSBundleAsset. See this class's package summary for more information about resolved assets.- Returns:
- the asset's resolved URL
-