[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: enums, generics and other animals
alesj
do-not-reply at jboss.com
Fri Mar 7 08:53:38 EST 2008
"adrian at 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#4134848
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134848
More information about the jboss-dev-forums
mailing list