"alesj" wrote : "adrian(a)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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...