title: How can I define static properties for Rhino's ScriptableObject?
body: <p>Rhino provides <strong>Scriptable</strong> interface and <strong>ScriptableObject</strong> helper class to implement a javascript object backed by a java object. </p>
  
  <p>When <strong>ScriptableObject</strong> is constructed, its methods with names starting with <strong>jsFunction___</strong>, <strong>jsStaticFunction___</strong>, <strong>jsGet___</strong>, <strong>jsSet___</strong>, <strong>jsConstructor</strong> are automatically defined for the javascript object. This way you can defined funations, static frunctions, instance properties (by its accessors), and constructor.</p>
  
  <p>The question is how to define static properties?</p>
  
  <p>By static properties I mean properties on the constructor, like static methods are methods on the constructor.</p>
  
  <p>The only way I see for now is to use <strong>finishInit</strong> method, and define static properties manually. But what is the right way?</p>