"adrian(a)jboss.org" wrote :
| Also, even for things like ControllerState you can create a helper class.
| e.g.
|
| | public interface MicrocontainerConstants
| | {
| | String CREATE = "Create";
| | String INSTANTIATED = "Instantiated";
| | }
| |
|
| That way people can reference the constants in their annotations
| instead of suffering from typos for the common values. ;-)
I though using interfaces to get access to constants was anti-pattern. ;-)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134848#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...