org.apache.tapestry.engine
Class DefaultScriptSource

java.lang.Object
  extended byorg.apache.tapestry.engine.DefaultScriptSource
All Implemented Interfaces:
java.util.EventListener, IScriptSource, ResetEventListener

public class DefaultScriptSource
extends java.lang.Object
implements IScriptSource, ResetEventListener

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

Since:
1.0.2
Author:
Howard Lewis Ship

Constructor Summary
DefaultScriptSource()
           
 
Method Summary
 IScript getScript(org.apache.hivemind.Resource resource)
          Retrieves the script identified by the location from the source's cache, reading and parsing the script if necessary.
 void resetEventDidOccur()
           
 void setClassResolver(org.apache.hivemind.ClassResolver classResolver)
           
 void setExpressionEvaluator(ExpressionEvaluator expressionEvaluator)
           
 void setValueConverter(ValueConverter valueConverter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultScriptSource

public DefaultScriptSource()
Method Detail

resetEventDidOccur

public void resetEventDidOccur()
Specified by:
resetEventDidOccur in interface ResetEventListener

getScript

public IScript getScript(org.apache.hivemind.Resource resource)
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

setClassResolver

public void setClassResolver(org.apache.hivemind.ClassResolver classResolver)

setExpressionEvaluator

public void setExpressionEvaluator(ExpressionEvaluator expressionEvaluator)
Since:
4.0

setValueConverter

public void setValueConverter(ValueConverter valueConverter)
Since:
4.0