[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Annotation processing

adrian@jboss.org do-not-reply at jboss.com
Tue Sep 4 08:12:44 EDT 2007


"alesj" wrote : "adrian at jboss.org" wrote : 
  |   | and add an isEmpty() to the MetaData api.
  |   | 
  | What would mean that MetaData.isEmpty() == true?
  | 
  | This?
  | 
  |   |    public boolean isEmpty()
  |   |    {
  |   |       MetaDatasItem items = retrieval.retrieveMetaData();
  |   |       return items == null || items.getMetaDatas() == null || items.getMetaDatas().length == 0; 
  |   |    }
  |   | 

Yes, but I think you should propogate the isEmpty() through the api
such that it can be done in a more efficient manner where possible.
i.e. no need to construct the metadata array from the annotations and plain
metadata just to see if there are any.

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

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



More information about the jboss-dev-forums mailing list