public final class ResourceLookup extends Object
IResourceLocator locations. If
all locators provided to this class are thread-safe, this class is also thread-safe.| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceLookup.Location
A set of predefined locations.
|
| Constructor and Description |
|---|
ResourceLookup(IResourceLocator... locators)
Create a lookup object based on the provided array of resource locators (in order).
|
ResourceLookup(List<IResourceLocator> locators)
Create a lookup object based on the provided list of resource locators (in order).
|
ResourceLookup(ResourceLookup.Location... locations)
Create a lookup object based on the provided array of predefined
locations.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object target) |
IResource[] |
getAll(String resource)
Scans all resource locators and returns matching resources.
|
IResource |
getFirst(String resource)
Scans through resource locators and returns the first matching resource.
|
IResourceLocator[] |
getLocators()
Returns a copy of the internal locators array.
|
int |
hashCode() |
public ResourceLookup(ResourceLookup.Location... locations)
public ResourceLookup(IResourceLocator... locators)
public ResourceLookup(List<IResourceLocator> locators)
public IResource[] getAll(String resource)
resource - Resource name.public IResource getFirst(String resource)
resource - Resource name.public IResourceLocator[] getLocators()