On Thu, Jun 01, 2000 at 11:35:47AM -0700, Jon Stevens wrote:
> on 6/1/2000 11:17 AM, Sean Legassick at [EMAIL PROTECTED] wrote:
>
> > TurbineWebMacroService.diff:
> > Puts the new objects in the WebContext
>
> speaking of which...can we make an API for adding things into the context so
> that we don't have to modify TWMS every time?
How about lines in TurbineResources.properties like:
webmacro.context.page = org.apache.turbine.util.webmacro.WebMacroPageAttributes
webmacro.context.formatter = org.apache.turbine.util.webmacro.WebMacroFormatter
Where the class can implement TurbineWebMacroTool
interface TurbineWebMacroTool
{
public void setRunData(RunData data)
}
and get hold of the RunData when constructed?
(I'm not sure about TurbineWebMacroTool as a name for the interface - it
seems like the interface might have more general uses? Any ideas?)
Anyway I'll happily look at coding this up...
Sean
--
Sean Legassick
[EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]