Class ResourceLoader<T>

java.lang.Object
ca.phon.util.resources.ResourceLoader<T>
Type Parameters:
T -
All Implemented Interfaces:
Iterable<T>

public final class ResourceLoader<T> extends Object implements Iterable<T>
Load resources of the parameterized type from various types of media. The actual loading is done using
  • Constructor Details

    • ResourceLoader

      public ResourceLoader()
      Constructor
  • Method Details

    • iterator

      public Iterator<T> iterator()
      Return an iterator of loaded resources. Resources will be loaded from handlers in the order the handlers are added to the library.
      Specified by:
      iterator in interface Iterable<T>
      Returns:
      Iterator
    • addHandler

      public void addHandler(ResourceHandler<T> handler)
      Add the given handler to the resource loader.
      Parameters:
      handler -
    • getHandlers

      public List<ResourceHandler<T>> getHandlers()