May be. The reason why I didnt change it is because we are still searching for the resource by iterating over (component hierarchy), class hierarchy, style, variation, locale and sometime extensions and only if the find the resource we create a resource stream for it. Not sure which I like better newResourceStream() or locate(). Should, from a convention point of view, all factories should have newXXX methods? Or maybe I shouldnt have changed the class name from xxxLocator to xxxFactory.
Juergen On 1/14/07, Jonathan Locke <[EMAIL PROTECTED]> wrote: > > > juergen, if it's a factory, shouldn't it be newResourceStream? > > > Juergen Donnerstag wrote: > > > > Please see CustomResourceStreamFactory in the custom resource loading > > examples for how it works, or OsgiResourceStreamFactory as another > > example. You simply extend ResourceStreamFactory, subclass the > > appropriate locate() method (you usually must not forget to call > > super.locate()) and register your factory with the resource settings. > > Thats it. > > > > Just out of curiosity, what are you using it for? How and why did you > > change/extend the default behavior? > > > > Juergen > > > > On 1/14/07, Otan <[EMAIL PROTECTED]> wrote: > >> having my code refactored to use ResourceStreamFactory (from using > >> ResourceStreamLocator before), my program no longer works and I now > >> receive > >> a MarkupNotFoundException. Could someone clarify to me how is the proper > >> use > >> of ResourceStreamFactory and what new things to understand regarding > >> custom > >> markup loading. > >> > >> Thanks. > >> > >> ------------------------------------------------------------------------- > >> Take Surveys. Earn Cash. Influence the Future of IT > >> Join SourceForge.net's Techsay panel and you'll get the chance to share > >> your > >> opinions on IT & business topics through brief surveys - and earn cash > >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > >> > >> _______________________________________________ > >> Wicket-user mailing list > >> [email protected] > >> https://lists.sourceforge.net/lists/listinfo/wicket-user > >> > >> > >> > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > > your > > opinions on IT & business topics through brief surveys - and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Wicket-user mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > -- > View this message in context: > http://www.nabble.com/from-ResourceStreamLocator-to-ResourceStreamFactory-in-Wicket-trunk-tf2992367.html#a8359551 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Wicket-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
