org.carrot2.util.resource
Class ClassLocator

java.lang.Object
  extended by org.carrot2.util.resource.ClassLocator
All Implemented Interfaces:
IResourceLocator

public class ClassLocator
extends Object
implements IResourceLocator

Looks up resources relative to the given class.


Constructor Summary
ClassLocator(Class<?> clazz)
           
 
Method Summary
 boolean equals(Object target)
          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.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassLocator

public ClassLocator(Class<?> clazz)
Method Detail

getAll

public IResource[] getAll(String resource)
Description copied from interface: IResourceLocator
Locate all matching resources and return their IResource handles.

Specified by:
getAll in interface IResourceLocator

hashCode

public int hashCode()
Description copied from interface: IResourceLocator
Override hash code to return consistent hash code depending on all locations scanned by this locator.

Specified by:
hashCode in interface IResourceLocator
Overrides:
hashCode in class Object

equals

public boolean equals(Object target)
Description copied from interface: IResourceLocator
Override equals to return true for locators scanning an identical set of locations.

Specified by:
equals in interface IResourceLocator
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright (c) Dawid Weiss, Stanislaw Osinski