You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by jv...@apache.org on 2001/07/16 17:36:45 UTC
cvs commit: jakarta-turbine/src/java/org/apache/turbine/modules ContextAdapter.java
jvanzyl 01/07/16 08:36:45
Added: src/java/org/apache/turbine/modules ContextAdapter.java
Log:
- not the final resting place but the adapter is hiding the use
of the template services.
Revision Changes Path
1.1 jakarta-turbine/src/java/org/apache/turbine/modules/ContextAdapter.java
Index: ContextAdapter.java
===================================================================
package org.apache.turbine.modules;
import org.apache.turbine.services.template.TemplateContext;
public class ContextAdapter
implements org.apache.turbine.TemplateContext
{
TemplateContext context;
public ContextAdapter(TemplateContext context)
{
this.context = context;
}
public Object put(String key, Object value)
{
context.put(key,value);
return value;
}
public Object get(String key)
{
return context.get(key);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org