com.github.searls.jasmine.io.scripts
Class AbstractScriptResolver

java.lang.Object
  extended by com.github.searls.jasmine.io.scripts.AbstractScriptResolver
All Implemented Interfaces:
ScriptResolver
Direct Known Subclasses:
ProjectDirScripResolver, TargetDirScriptResolver

public abstract class AbstractScriptResolver
extends Object
implements ScriptResolver


Field Summary
protected  File baseDir
           
protected  List<String> preloads
           
protected  RelativizesASetOfScripts relativizer
           
protected  RelativizesFilePaths relativizesFilePaths
           
protected  ScriptSearch scriptSearchSources
           
protected  ScriptSearch scriptSearchSpecs
           
 
Constructor Summary
AbstractScriptResolver()
           
 
Method Summary
 Set<String> getAllScripts()
           
 Set<String> getAllScriptsRelativePath()
           
 Set<String> getPreloads()
           
 Set<String> getPreloadsRelativePath()
           
 String getSourceDirectory()
           
 String getSourceDirectoryRelativePath()
           
 Set<String> getSources()
           
 Set<String> getSourcesRelativePath()
           
 String getSpecDirectoryPath()
           
 String getSpecDirectoryRelativePath()
           
 Set<String> getSpecs()
           
 Set<String> getSpecsRelativePath()
           
 void resolveScripts()
           
 void setScriptsToPreload(Set<String> scriptsToPreload)
           
 void setSources(Set<String> sources)
           
 void setSpecs(Set<String> specs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

baseDir

protected File baseDir

scriptSearchSources

protected ScriptSearch scriptSearchSources

scriptSearchSpecs

protected ScriptSearch scriptSearchSpecs

preloads

protected List<String> preloads

relativizer

protected RelativizesASetOfScripts relativizer

relativizesFilePaths

protected RelativizesFilePaths relativizesFilePaths
Constructor Detail

AbstractScriptResolver

public AbstractScriptResolver()
Method Detail

resolveScripts

public void resolveScripts()
                    throws IOException
Specified by:
resolveScripts in interface ScriptResolver
Throws:
IOException

getPreloads

public Set<String> getPreloads()
Specified by:
getPreloads in interface ScriptResolver

getSources

public Set<String> getSources()
Specified by:
getSources in interface ScriptResolver

getSpecs

public Set<String> getSpecs()
Specified by:
getSpecs in interface ScriptResolver

getAllScripts

public Set<String> getAllScripts()
Specified by:
getAllScripts in interface ScriptResolver

getSourceDirectory

public String getSourceDirectory()
                          throws IOException
Specified by:
getSourceDirectory in interface ScriptResolver
Throws:
IOException

getSpecDirectoryPath

public String getSpecDirectoryPath()
                            throws MalformedURLException
Specified by:
getSpecDirectoryPath in interface ScriptResolver
Throws:
MalformedURLException

getSourcesRelativePath

public Set<String> getSourcesRelativePath()
                                   throws IOException
Specified by:
getSourcesRelativePath in interface ScriptResolver
Throws:
IOException

getSpecsRelativePath

public Set<String> getSpecsRelativePath()
                                 throws IOException
Specified by:
getSpecsRelativePath in interface ScriptResolver
Throws:
IOException

getPreloadsRelativePath

public Set<String> getPreloadsRelativePath()
                                    throws IOException
Specified by:
getPreloadsRelativePath in interface ScriptResolver
Throws:
IOException

getAllScriptsRelativePath

public Set<String> getAllScriptsRelativePath()
                                      throws IOException
Specified by:
getAllScriptsRelativePath in interface ScriptResolver
Throws:
IOException

getSourceDirectoryRelativePath

public String getSourceDirectoryRelativePath()
                                      throws IOException
Specified by:
getSourceDirectoryRelativePath in interface ScriptResolver
Throws:
IOException

getSpecDirectoryRelativePath

public String getSpecDirectoryRelativePath()
                                    throws IOException
Specified by:
getSpecDirectoryRelativePath in interface ScriptResolver
Throws:
IOException

setScriptsToPreload

public void setScriptsToPreload(Set<String> scriptsToPreload)

setSources

public void setSources(Set<String> sources)

setSpecs

public void setSpecs(Set<String> specs)


Copyright © 2012. All Rights Reserved.