[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: enums, generics and other animals

adrian@jboss.org do-not-reply at jboss.com
Fri Mar 7 08:46:28 EST 2008


"alesj" wrote : "adrian at jboss.org" wrote : If they are used by the annotations then they should be in the api.
  | Even the AutowireType?
  | Moving it out of spi?

Yes. If it is used by the annotations then people need it to compile.

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. ;-)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134847#4134847

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134847



More information about the jboss-dev-forums mailing list