Metro 0.3.1 Released

Metro , Transfer , ColdFusion , ColdSpring Add comments

While in the process of generating documentation for Metro (using Mark Mandel's excellent Colddoc), I realized that I am generally remiss about using hint. Therefore, I embarked on a mission of adding hints to the Metro library. During the course of this exercise, I chose to re-factor a few items that I wasn't completely happy with. The result is Metro 0.3.1.

Here are the important changes:

  1. Re-factor the Audit decorator, AuditObserver and sql into security package
    Auditing is really about security (imo) and since my Audit object definition contained a UserId property, I decided to go all the way and create manytoone reference to User for the Audit object. I also updated the observer to optionally track BeforeDelete events in addition to AfterCreate and AfterUpdate. Finally, I eliminated the audtit package.
  2. Added hints to components, methods and arguments.
    As mentioned in the introduction, hinting helped clarify the intent of my code and makes the documentation much easier to follow. I highly recommend getting into the habit of using hint.
  3. Updated the tests configuration to enable the Audit Observer during SecurityService tests.
    What better way to test the observer than to create and delete Users with the SecurityService test case? I'll write up a specific post on this to clarify what the Audit observer is about and why I decided to use this design choice in a future post. If you like to dig in and see how it is enabled, simply check out the ColdSpring XML bean definitions in the /tests/config folder.
  4. ServiceFactory now supports creation of concrete classes that extend metro.core.Service and metro.core.Gateway recursively
    Again, while working on a new project based on Metro, I wanted the ability to extend the metro.security.SercurityService class instead of metro.core.Service, so with a little help from Jon Messer for spotting my recursion miscue, I enabled this feature.

Stay tuned for information about additional Metro resources in the near future.


1 response to “Metro 0.3.1 Released”

  1. UGG Says:
    <p><a href="http://www.uggbootsretails.com"; target="_blank">UGG Argyle Knit</a> features genuine twin-face sheepskin for refreshing comfort. It's one of our tallest boots and looks great all the way up or cuffed down. <a href="http://www.uggbootsretails.com"; target="_blank">UGG boots</a> in our Classic Collection feature a soft foam insole covered with genuine sheepskin and have a molded EVA light such as <a href="http://www.uggbootsretails.com"; target="_blank">UGG Sundance</a> and <a href="http://www.uggbootsretails.com"; target="_blank">UGG Bailey Button</a>, the flexible outsole designed for amazing comfort with every step. Beat the chill in superior style with the <a href="http://www.uggbootsretails.com"; target="_blank">UGG Ultra Tall</a>. The <a href="http://www.uggbootsretails.com"; target="_blank">Bailey Button 1873</a> of light and flexible outsole along with a suede heel guard provides durable wear all season long. Detailed with three oversized wood buttons, this style can be styled up and buttoned, slouched and slightly unbuttoned, or completely cuffed. <a href="http://www.uggbootsretails.com"; target="_blank">UGG Ultra Short</a> is also a good choice for people to refuge from the cold.Just buy one of the ugg boots for your family and yourself, it’s really a good gift both for you famlily and you.Action is better than thinking in heart.</p>

Leave a Reply



Powered by Mango Blog. Design and Icons by N.Design Studio