On 06/12/2006, at 8:45 PM, Mike Kear wrote:
> But I do think that Andrew's java answer was really cool.


I agree. There are lots of interesting undocumented methods hanging  
around in CFML - For instance application.getApplicationSettings()  
that I blogged about back in 2005:

http://www.rocketboots.com.au/blog/index.cfm? 
mode=entry&entry=8A1C48F5-E081-51EF-A7AF8C312529DABA

Here's a script ("Java Eye for the CF Guy"?) that lists some of the  
methods hidden away in common-garden CFML things:

<cfapplication name="test" sessionmanagement="true">
<cfscript>
        function hiddenMethods(class) {
                writeOutput("<h1>Class: " & class.toString() & "</h1><br>");
                aMethods = class.getMethods();
                for (i = arrayLen(aMethods); i gt 0; i = i - 1)
                        writeOutput(aMethods[i].toString() & "<br>");
        }

        // String
        s = "hello";
        hiddenMethods(s.getClass());

        // Array
        hiddenMethods(arrayNew(1).getClass());

        // XML
        hiddenMethods(xmlNew().getClass());

        // Struct
        hiddenMethods(structNew().getClass());

        // Application
        hiddenMethods(application.getClass());

        // Session
        hiddenMethods(session.getClass());

        // Template
        hiddenMethods(getClass());

        // Component
        function getClassFromInsideComponent() {
                return getClass();
        }
        instance = createObject("component","WEB-INF.cftags.component");
        instance.getClassFromInsideComponent = getClassFromInsideComponent;
        hiddenMethods(instance.getClassFromInsideComponent());

</cfscript>

As always, use undocumented methods at your own risk :-)

______________

Robin Hilliard
Director - RocketBoots Pty Ltd
Consulting . Recruitment . Software Licensing . Training
http://www.rocketboots.com.au

For schedule/availability call Pamela Higgins:
w    +61 7 5451 0362
m    +61 419 677 151
f    +61 3 9923 6261
e    [EMAIL PROTECTED]

or Direct:
m    +61 418 414 341
e    [EMAIL PROTECTED]




--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to