@NoImplement
public interface ResourceLocator
| Modifier and Type | Method and Description |
|---|---|
Optional<URL> |
find(String resource,
Object caller)
Looks for a resource based on the calling class classloader and the current context classloader.
|
default Optional<URL> |
findIn(String resource,
String groupId,
String artifactId,
Optional<String> version,
Object caller)
Same as
findIn(String, String, String, Optional, String, String, Object) but using no classifier and jar as
type. |
Optional<URL> |
findIn(String resource,
String groupId,
String artifactId,
Optional<String> version,
String classifier,
String type,
Object caller)
Looks for a resource based on the calling class classloader and the current context classloader, specifically within the artifact
specified by it's GAV coordinates, considering it's classifier and type as well.
|
Optional<InputStream> |
load(String resource,
Object caller)
Looks for a resource as in
find(String, Object) and returns it's InputStream if possible. |
default Optional<InputStream> |
loadFrom(String resource,
String groupId,
String artifactId,
Optional<String> version,
Object caller)
Same as
loadFrom(String, String, String, Optional, String, String, Object) but using no classifier and jar as
type. |
Optional<InputStream> |
loadFrom(String resource,
String groupId,
String artifactId,
Optional<String> version,
String classifier,
String type,
Object caller)
Looks for a resource as in
findIn(String, String, String, Optional, String, String, Object) and returns it's InputStream if
possible. |
Optional<InputStream> load(String resource, Object caller)
find(String, Object) and returns it's InputStream if possible.resource - the name of the resource to loadcaller - the calling objectOptional<URL> find(String resource, Object caller)
resource - the name of the resource to loadcaller - the calling objectURL for this resourcedefault Optional<InputStream> loadFrom(String resource, String groupId, String artifactId, Optional<String> version, Object caller)
loadFrom(String, String, String, Optional, String, String, Object) but using no classifier and jar as
type.resource - the name of the resource to loadgroupId - the group ID of the artifact where to lookartifactId - the artifact ID of the artifact where to lookversion - the optional version of the artifact where to lookcaller - the calling objectOptional<InputStream> loadFrom(String resource, String groupId, String artifactId, Optional<String> version, String classifier, String type, Object caller)
findIn(String, String, String, Optional, String, String, Object) and returns it's InputStream if
possible.resource - the name of the resource to loadgroupId - the group ID of the artifact where to lookartifactId - the artifact ID of the artifact where to lookversion - the optional version of the artifact where to lookclassifier - the classifier of the artifact where to looktype - the type of the artifact where to lookcaller - the calling objectOptional<URL> findIn(String resource, String groupId, String artifactId, Optional<String> version, String classifier, String type, Object caller)
resource - the name of the resource to loadgroupId - the group ID of the artifact where to lookartifactId - the artifact ID of the artifact where to lookversion - the optional version of the artifact where to lookclassifier - the classifier of the artifact where to looktype - the type of the artifact where to lookcaller - the calling objectURL for this resourcedefault Optional<URL> findIn(String resource, String groupId, String artifactId, Optional<String> version, Object caller)
findIn(String, String, String, Optional, String, String, Object) but using no classifier and jar as
type.resource - the name of the resource to loadgroupId - the group ID of the artifact where to lookartifactId - the artifact ID of the artifact where to lookversion - the optional version of the artifact where to lookcaller - the calling objectURL for this resourceCopyright © 2019 MuleSoft, Inc.. All rights reserved.