Yes, it's quite easy to subclass RunData. What you describe is basically what I do. My TR.props has:
services.RunDataService.default.run.data=com.maximus.stt.core.pagemgr.turbin e.services.rundata.DefaultMaximusRunData Make sure you are referring to the implementation class, not the interface; e.g. I have: - MaximusRunData that extends RunData interface, and - DefaultMaximusRunData that extends DefaultTurbineRunData And I refer to DefaultMaximusRunData. -----Original Message----- From: Edwin Gustafson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 11:53 AM To: Turbine List Subject: Custom RunData? Greetings, Is it common to use a custom implementation of RunData? Is it easy? The javadoc for DefaultTurbineRunData says it is the default "if another implementation is not defined in the default or specified RunData configuration." I've tried changing the default in TR.props... services.RunDataService.default.run.data=path.to.my.implementation.of.RunDat a ...but my rundata object is still of class DefaultTurbineRunData. I don't understand how to specify a different RunData configuration. I set it up in TR.props... services.RunDataService.custom.run.data=path.to.my.implementation.of.RunData services.RunDataService.custom.parameter.parser=org.apache.turbine.util.pars er. DefaultParameterParser services.RunDataService.custom.cookie.parser=org.apache.turbine.util.parser. DefaultCookieParser ...but Turbine ignores it. How do I tell Turbine to use this configuration? -- Edwin Gustafson 734 971 3586 x 235 Cayman Chemical Company 42�13'44" N 83�43'25" W -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
