title: What is the equivalent of static methods in ColdFusion?
body: <p>In C#, I created static methods to help me perform simple operations. For example:</p>
  
  <pre><code>public static class StringHelper
  {
      public static string Reverse(string input)
      {
          // reverse string
          return reversedInput;
      }
  }
  </code></pre>
  
  <p>Then in a controller, I would call it by simply using:</p>
  
  <pre><code>StringHelper.Reverse(input);
  </code></pre>
  
  <p>Now I'm using ColdFusion with Model Glue, and I'd like to do the same thing. However, it seems like there's no concept of static methods in ColdFusion. If I create a CFC like this:</p>
  
  <pre><code>component StringHelper
  {
      public string function Reverse(string input)
      {
          // reverse string
          return reversedInput;
      }
  }
  </code></pre>
  
  <p>Can I only call this method by creating an instance of <code>StringHelper</code> in the controller, like this:</p>
  
  <pre><code>component Controller
  {
      public void function Reverse()
      {
          var input = event.getValue("input");
          var stringHelper = new StringHelper();
          var reversedString = stringHelper.Reverse(input);
          event.setValue("reversedstring", reversedString);
      }
  }
  </code></pre>
  
  <p>Or is there some place where I can put 'static' CFCs that the framework will create an instance of behind the scenes so I can use it as if it was static, kind of like how the helpers folder works?</p>