[jifty-devel] Playing with the class loader

Jesse Vincent jesse at bestpractical.com
Sat Dec 8 23:51:58 EST 2007




On Sat, Dec 08, 2007 at 10:48:47PM -0600, Andrew Hanenkamp wrote:
> Looking at the class loader, it seems that it could be improved and
> generalized. I found as I was building some other Jifty related tools,
> particularly a generic Comment plugin and a web platform we're beginning to
> plan for 2008 Q3 for work, I needed to automatically generate code based
> upon simple templates. This work looks very similar to what is already
> provided in Jifty::ClassLoader. Being iced in this weekend, I toyed with the
> idea and came up with a new project: Class::AutoGenerate. I've placed it on
> my personal SVN repository here if you want to check it out.
> 
> http://svn.contentment.org/svn/trunk/Class-AutoGenerate/
> 
> I built the first test modeled after a replicate of Jifty::ClassLoader:
> 
> http://svn.contentment.org/svn/trunk/Class-AutoGenerate/t/05-jifty-classloader.t
> 
> It was inspired by both Jifty::ClassLoader and Jifty::Dispatcher. I'm not
> sure it's the right way to reimplement Jifty::ClassLoader or not, but it's
> an idea. I plan to use it for my own projects at this point if nothing else
> and thought I'd share it as another declarative/jifty-ish tool that will
> becoming to a CPAN mirror near you (once I finish cleaning it up).

I'd certainly love to see a patch to replace the ClassLoader (or any
other significant part of jifty) with a nice abstraction like this :)

> 
> Cheers,
> Andrew

> _______________________________________________
> jifty-devel mailing list
> jifty-devel at lists.jifty.org
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel


-- 


More information about the jifty-devel mailing list