ua.gradsoft.termware.termloaders
Class ClassPathTermLoader

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

public class ClassPathTermLoader
extends TermLoader

TermLoader, which load terms from current classpath.

Author:
Ruslan Shevchenko

Field Summary
 
Fields inherited from class ua.gradsoft.termware.TermLoader
instance_
 
Constructor Summary
ClassPathTermLoader()
          Creates a new instance of ClassPathTermLoader
 
Method Summary
 void addSearchPath(String path)
          do nothing
 List<String> getSearchPathes()
          return empty list
 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

ClassPathTermLoader

public ClassPathTermLoader()
Creates a new instance of ClassPathTermLoader

Method Detail

addSearchPath

public void addSearchPath(String path)
do nothing

Specified by:
addSearchPath in class TermLoader

getSearchPathes

public List<String> getSearchPathes()
return empty list

Specified by:
getSearchPathes in class TermLoader

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