org.apache.tapestry5.internal
Class ServletContextSymbolProvider

java.lang.Object
  extended by org.apache.tapestry5.internal.ServletContextSymbolProvider
All Implemented Interfaces:
SymbolProvider

public class ServletContextSymbolProvider
extends java.lang.Object
implements SymbolProvider

A wrapper around ServletContext that makes init-parameters accessible as symbols.


Constructor Summary
ServletContextSymbolProvider(javax.servlet.ServletContext context)
           
 
Method Summary
 java.lang.String valueForSymbol(java.lang.String symbolName)
          Returns the value for the symbol, or null if this provider can not provide a value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletContextSymbolProvider

public ServletContextSymbolProvider(javax.servlet.ServletContext context)
Method Detail

valueForSymbol

public java.lang.String valueForSymbol(java.lang.String symbolName)
Description copied from interface: SymbolProvider
Returns the value for the symbol, or null if this provider can not provide a value. The value itself may contain symbols that will be recursively expanded.

Specified by:
valueForSymbol in interface SymbolProvider
Returns:
the value or null


Copyright © 2003-2012 The Apache Software Foundation.