com.primix.tapestry.engine
Class DefaultScriptSource

java.lang.Object
  |
  +--com.primix.tapestry.engine.DefaultScriptSource
All Implemented Interfaces:
IScriptSource

public class DefaultScriptSource
extends java.lang.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,v 1.3 2001/08/24 21:38:47 hship Exp $
Author:
Howard Ship

Constructor Summary
DefaultScriptSource(IResourceResolver resolver)
           
 
Method Summary
 IScript getScript(java.lang.String resourcePath)
           
 void reset()
          Invoked to clear any cached data.
 java.lang.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 data.
Specified by:
reset in interface IScriptSource

getScript

public IScript getScript(java.lang.String resourcePath)
                  throws ResourceUnavailableException
Specified by:
getScript in interface IScriptSource

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object