Skip to main content

Graeme Taylor

Member since Aug 9, 2010

Recent Blog Comments By Graeme Taylor

  • Creating ColdFusion Proxy Components With ColdFusion 9's GetFunctionCalledName()

    Posted on Sep 16, 2011 at 3:48 PM

    @Kevin, Having dug into ColdFusion's Java bytecode; the simplest way I can explain it is that objectEquals(obj1, obj2) invokes the java.lang.Object.equals(obj) method on obj1 and is given obj2 as its parameter. (It does a little bit more than that but those details aren't pertinent here.) So ess... read more »

  • Exploring The ColdFusion Component (CFC) Extension Lifecycle

    Posted on May 18, 2011 at 1:34 PM

    @Ben, No decompile necessary; check out some screenshots here: http://www.ej-technologies.com/products/jclasslib/screenshots.html You don't see actual bytecode until you open the Code "folder" within a method. Otherwise the class definition is laid out in a fairly easy to navigate tr... read more »

  • Exploring The ColdFusion Component (CFC) Extension Lifecycle

    Posted on May 17, 2011 at 1:03 PM

    @Ben, I think with the Application.cfc it can be hard to completely avoid logic in the pseudo-constructor, sometimes you want to tweak an application setting one way or another depending on certain conditions (such as what environment you're running in: dev/test/production/etc.) Poking around/expe... read more »

  • Exploring The ColdFusion Component (CFC) Extension Lifecycle

    Posted on May 17, 2011 at 9:43 AM

    Also, I meant to mention that your statement which I quoted makes sense, because at the pseudo-constructor phase of the cfc definition is in the process of being loaded, so there's no way for it know about anything but itself.... read more »

  • Exploring The ColdFusion Component (CFC) Extension Lifecycle

    Posted on May 17, 2011 at 9:37 AM

    "As it turns out, during the pseudo-constructor phase of the super-class instantiation, the super-class has absolutely no knowledge of the sub-class that is extending it." In my experience it's better to think of the entire "pseudo-constructor" block of a CFC as its ... read more »

  • Explicitly Ending A ColdFusion Session

    Posted on May 2, 2011 at 1:06 PM

    "... For the session timeout, I went with one second. The ColdFusion documentation indicates that a timeout of zero seconds can be used; but in my experience, a zero second timeout appears to be ignored. ..." I used a Java bytecode viewer (jclasslib bytecode viewer), popped open the cfus... read more »

  • Creating ColdFusion Proxy Components With ColdFusion 9's GetFunctionCalledName()

    Posted on Dec 23, 2010 at 12:40 PM

    And finally, doing some more investigating, replacing the entire body of the isEqualTo method with return objectEquals(this, obj); works exactly the same.... read more »

  • Creating ColdFusion Proxy Components With ColdFusion 9's GetFunctionCalledName()

    Posted on Dec 23, 2010 at 12:30 PM

    Actually looking at my code and my comment about not "exposing their internal objects ... outside the CFC itself." is incorrect, as an object passed to the equals method could have its own equals method written to intercept the internal object passed to it. The following change cl... read more »

  • Creating ColdFusion Proxy Components With ColdFusion 9's GetFunctionCalledName()

    Posted on Dec 22, 2010 at 7:55 PM

    @Chris, Here's how to test for CFC reference equality using the underlying Java layer in CF9 without writing a Java class to handle it: component { _internalObj = getPageContent().getPage(); // get the CFC's compiled page class instance; // we can call its underlying Java methods   /** *... read more »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel