From: Alistair Y. <ali...@sm...> - 2006-03-23 10:45:49
|
> Ok so what happens when the class.forName() fails? localised error message > I'm still moving down in the direction of leaving templates and > Facility maybe you've got other ideas then Matthew - I'm coming from a desperate need to get away from Facility! > So how do the templates change so that the MyModules code doesn't get > called? they don't call the plugin. e.g. out left.html has a call to Facility to output the module links. Just remove that call and the plugin is never called. > ossiblity of having HTML related Java throughout the Bodington > codebase possibility? you've just described Facility! Alistair On 23 Mar 2006, at 10:21, Matthew Buckett wrote: > Alistair Young wrote: >>> Otherwise just hardwire it >> >> that's the whole point of the plugin - so we don't have to merge and >> ship uhi specific code. If we hardwire it then Facility needs to know >> about our classes. All we need is a hook in Facility that our >> templates >> can call. If templates could call any class then we wouldn't need >> the >> hook in Facility. > > Ok so what happens when the class.forName() fails? > >>> pull this >>> from a configuration file somewhere >> >> more than likely we will - we want to get away from dumping stuff in >> Facility. I heard a rumour that Oxford have modules too so they could >> use our templates but provide their own plugin via config file. > > I'm still moving down in the direction of leaving templates and > Facility > for SpringMVC and JSPs. > >>> It seems that basically the "Plugin" is just code behind the >>> Facility >>> facade >> >> yes, although I don't want to use Facility *at all*. It's just >> that the >> templates can only call Facility and nothing else. >> >>> traditionally a plugin >>> is a body of code that can be added/removed at runtime to augment >>> functionality >> >> that's what I'm doing! add the plugin to the template and you get My >> Modules functionality. Remove the plugin from the template and you >> don't! All at runtime. > > So how do the templates change so that the MyModules code doesn't get > called? > >> Perhaps if I say that the plugin includes associated template tag. >> <plugin ... /> ? >> >> Why can't templates call any class? It would be sooo much easier >> to add >> functionality like this without bloating Facility further. > > We could, as I said earlier it just then means you end up with the > possiblity of having HTML related Java throughout the Bodington > codebase. > > -- > -- Matthew Buckett, VLE Developer > -- Learning Technologies Group, Oxford University Computing Services > -- Tel: +44 (0)1865 283660 http://www.oucs.ox.ac.uk/ltg/ > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the > live webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Bodington-developers mailing list > Bod...@li... > https://lists.sourceforge.net/lists/listinfo/bodington-developers |