ua.gradsoft.termware.termloaders
Class FileOrClassTermLoader

java.lang.Object
  extended by ua.gradsoft.termware.TermLoader
      extended by ua.gradsoft.termware.termloaders.FileOrClassTermLoader

public class FileOrClassTermLoader
extends TermLoader

TermLoader, which search at first in file system, if not found -- in currenct classpath.


Field Summary
 
Fields inherited from class ua.gradsoft.termware.TermLoader
instance_
 
Constructor Summary
FileOrClassTermLoader()
          Creates a new instance of FileOrClassTermLoader
 
Method Summary
 void addSearchPath(String path)
          add search path
 List<String> getSearchPathes()
          return read-only list of searh patches.
 InputStreamSource getSource(String name)
          locate source by absolute name.
 
Methods inherited from class ua.gradsoft.termware.TermLoader
load
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileOrClassTermLoader

public FileOrClassTermLoader()
Creates a new instance of FileOrClassTermLoader

Method Detail

addSearchPath

public void addSearchPath(String path)
Description copied from class: TermLoader
add search path

Specified by:
addSearchPath in class TermLoader

getSearchPathes

public List<String> getSearchPathes()
                             throws ExternalException
Description copied from class: TermLoader
return read-only list of searh patches.

Specified by:
getSearchPathes in class TermLoader
Throws:
ExternalException

getSource

public InputStreamSource getSource(String name)
                            throws ResourceNotFoundException,
                                   ExternalException
Description copied from class: TermLoader
locate source by absolute name.

Specified by:
getSource in class TermLoader
Throws:
ResourceNotFoundException
ExternalException