BriteSnow / snow

A Lightweight, Google Guice, Simple, and Powerful Web Application Framework that makes building modern Web Application a breeze! Fully open source, Apache V2 licensed.
http://britesnow.com/snow
29 stars 10 forks source link

Enforcing "@Singleton" on "Web Classes" #5

Closed jeremychone closed 11 years ago

jeremychone commented 11 years ago

In short, in 1.9.9 any classes with "@Web..." is treated by Snow as singleton, but Snow does not inforce the "@Singleton" notation, which can cause confusion and inconsistency with future features (where Snow might support "WebClass" to be other than Singleton.

So, in 2.0.0, Snow will enforce "@Singleton" for any "WebClass" (meaning, any class with a "@Web..." binding"

More info: https://plus.google.com/u/0/101096085464568478217/posts/frmz8B8VkNw

jeremychone commented 11 years ago

Published in the 2.0.0-snapshot