org.apache.tapestry.services.impl
Class ServletPropertySource

java.lang.Object
  |
  +--org.apache.tapestry.services.impl.ServletPropertySource
All Implemented Interfaces:
IPropertySource

public class ServletPropertySource
extends java.lang.Object
implements IPropertySource

Obtains property values from ServletConfig for the application servlet.

Since:
3.1
Author:
Howard Lewis Ship

Constructor Summary
ServletPropertySource()
           
 
Method Summary
 java.lang.String getPropertyValue(java.lang.String propertyName)
          Returns the value for a given property, or null if the source does not provide a value for the named property.
 void setServletConfig(javax.servlet.ServletConfig config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletPropertySource

public ServletPropertySource()
Method Detail

getPropertyValue

public java.lang.String getPropertyValue(java.lang.String propertyName)
Description copied from interface: IPropertySource
Returns the value for a given property, or null if the source does not provide a value for the named property. Implementations of IPropertySource may use delegation to resolve the value (that is, if one property source returns null, it may forward the request to another source).

Specified by:
getPropertyValue in interface IPropertySource

setServletConfig

public void setServletConfig(javax.servlet.ServletConfig config)