I like Mark's java Loader it's nice but I feels hacky using it. Not saying anything in it is wrong or otherwise not grade A. I just feel like I am hacking something together using it. It'd be nice if this was just built into the engine, I was thinking something like createObject("java","com.package.Class",ClassLoader). This would allow ColdFusion to search one additional classloader that I create, presumably with UrlClassloader. Now I understand that this one might be odd since, as far as I recall, this would be the first you'd ever feed a Java object into a CF method so maybe we could just pass in a URI string, createObject("java","com.package.Class","/path/to/class.class")? Anyrate my whole point here is we are seeing more and more integration with Java and there is, obviously, a need for folks to load in Jars at runtime*. Many do not have access or know how to add jars in the defined classpaths, or add classpaths to jars.
* Yes I know Shared hosts would most likely not like this but the fact of the matter is we can already do it, and Mark has made it super easy. So since we can do it we should just add it to the language instead of some external CFC.
Wednesday, August 20, 2008
Subscribe to:
Post Comments (Atom)
4 comments:
wot? no bites to push this idea along? Give it some legs? Awww...
Adobe *must* be thinking about CF9 features round about now. Speak now, etc...
c'mon ppl, make some noize!
Adobe called for this months ago do a search on CF9 on the Adobe website. Think it was somebodies blog.
Cheers,
R
Here it is Jason Delmore's blog
http://www.cfinsider.com/index.cfm/2007/9/14/What-do-YOU-want-next-for-ColdFusion
Why not:
createObject("java","http://somesite.com/lib.jar#package.Class")
?
Post a Comment