|
Carrot2 v3.6.0-SNAPSHOT
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.util.resource.ResourceLookup
public final class ResourceLookup
Resource loading utility scanning one or more IResourceLocator locations. If
all locators provided to this class are thread-safe, this class is also thread-safe.
| Nested Class Summary | |
|---|---|
static class |
ResourceLookup.Location
A set of predefined locations. |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceLookup(ResourceLookup.Location... locations)
public ResourceLookup(IResourceLocator... locators)
public ResourceLookup(List<IResourceLocator> locators)
| Method Detail |
|---|
public IResource[] getAll(String resource)
resource - Resource name.
public IResource getFirst(String resource)
resource - Resource name.
public IResourceLocator[] getLocators()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object target)
equals in class Object
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||