@Deprecated
@ProviderType
public interface ResourceMergerService
| Modifier and Type | Method and Description |
|---|---|
@Nullable Resource |
getMergedResource(Resource resource)
Deprecated.
Returns a merged resource if the provided resource is from one of the search paths
and the resource is not hidden.
|
@NotNull java.lang.String |
getMergedResourcePath(java.lang.String relativePath)
Deprecated.
Returns the absolute path for the provided relative path.
|
@NotNull java.lang.String |
getResourcePath(@NotNull java.lang.String searchPath,
@NotNull java.lang.String mergedResourcePath)
Deprecated.
Return a resource path by taking the path of the merged resource, removing
the mount point and replacing it with the search path.
|
boolean |
isMergedResource(Resource resource)
Deprecated.
Returns
true if the provided Resource is a merged resource. |
@NotNull @NotNull java.lang.String getMergedResourcePath(java.lang.String relativePath)
relativePath - The relative pathjava.lang.IllegalArgumentException - if relativePath is null or absolute@Nullable @Nullable Resource getMergedResource(Resource resource)
null, null is returned.resource - The resourcenullboolean isMergedResource(Resource resource)
true if the provided Resource is a merged resource.
If the resource is null, false is returned.resource - The resourcetrue if the provided Resource is a merged resource.@NotNull
@NotNull java.lang.String getResourcePath(@NotNull
@NotNull java.lang.String searchPath,
@NotNull
@NotNull java.lang.String mergedResourcePath)
searchPath - The search path, this is an absolute path ending with a slash
as returned by the resource resolvermergedResourcePath - An absolute path to a merged resourcejava.lang.IllegalArgumentException - If search path is not absolute or does not end
with a slash or if the merged resource path
is not within the space of the merged resources.Copyright © 2010 - 2023 Adobe. All Rights Reserved