org.carrot2.util.resource
Interface IResourceLocator

All Known Implementing Classes:
ClassLoaderLocator, ClassLocator, ContextClassLoaderLocator, DirLocator, PrefixDecoratorLocator, ServletContextLocator

public interface IResourceLocator

An abstraction layer for a single resource lookup source. A single source may combine several actual locations (a class loader, for example).

See Also:
ResourceLookup

Method Summary
 boolean equals(Object obj)
          Override equals to return true for locators scanning an identical set of locations.
 IResource[] getAll(String resource)
          Locate all matching resources and return their IResource handles.
 int hashCode()
          Override hash code to return consistent hash code depending on all locations scanned by this locator.
 

Method Detail

getAll

IResource[] getAll(String resource)
Locate all matching resources and return their IResource handles.


hashCode

int hashCode()
Override hash code to return consistent hash code depending on all locations scanned by this locator.

Overrides:
hashCode in class Object

equals

boolean equals(Object obj)
Override equals to return true for locators scanning an identical set of locations.

Overrides:
equals in class Object


Copyright (c) Dawid Weiss, Stanislaw Osinski