org.apache.tapestry.engine
Class DefaultScriptSource

java.lang.Object
  extended by org.apache.tapestry.engine.DefaultScriptSource
All Implemented Interfaces:
IScriptSource

public class DefaultScriptSource
extends Object
implements IScriptSource

Provides basic access to scripts available on the classpath. Scripts are cached in memory once parsed.

Since:
1.0.2
Version:
$Id: DefaultScriptSource.java 243791 2004-02-19 17:38:13Z hlship $
Author:
Howard Lewis Ship

Constructor Summary
DefaultScriptSource(IResourceResolver resolver)
           
 
Method Summary
 IScript getScript(IResourceLocation scriptLocation)
          Retrieves the script identified by the location from the source's cache, reading and parsing the script if necessary.
 void reset()
          Invoked to clear any cached scripts.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultScriptSource

public DefaultScriptSource(IResourceResolver resolver)
Method Detail

reset

public void reset()
Description copied from interface: IScriptSource
Invoked to clear any cached scripts.

Specified by:
reset in interface IScriptSource

getScript

public IScript getScript(IResourceLocation scriptLocation)
Description copied from interface: IScriptSource
Retrieves the script identified by the location from the source's cache, reading and parsing the script if necessary.

Specified by:
getScript in interface IScriptSource

toString

public String toString()
Overrides:
toString in class Object