A couple other items

  • If you're not on OSX, you'll probably have to edit classDetails.cfm and, on line 34, input the correct path to javap(.exe on Windows). cfexecute doesn't like to use the PATH variable... it expects the full path to the executable. So you'll have to change that.
  • You may need to create an instance of java.lang.Class at the top of a page when you're going to be calling getClass().getCanonicalName() against a ColdFusion object... the syntax is easy:
    <cfset oClass = createObject("java", "java.lang.Class")>
    You don't need to do anything else with it.
  • For many ColdFusion objects, just calling, for example, getMetaData(structNew()).getCanonicalName() is enough to get the classname because getMetaData() returns the same thing as getClass(). However, for some things (like queries) getMetaData() has specialized behavior and you'll need to use the getClass() method.
  • That's all I can think of for now... I hope you try it out and use it!

Comments
BlogCFC was created by Raymond Camden. This blog is running version 5.5.006. | Protected by Akismet | Blog with WordPress