Package org.jboss.metadata.spi.retrieval.basic

Examples of org.jboss.metadata.spi.retrieval.basic.BasicMetaDataItem


/* 269 */         this.metaDataByName = new ConcurrentHashMap();
/*     */       }
/*     */     }
/* 272 */     Object result = null;
/*     */
/* 274 */     BasicMetaDataItem old = (BasicMetaDataItem)this.metaDataByName.get(type.getName());
/* 275 */     if (old != null)
/*     */     {
/* 277 */       result = old.getValue();
/* 278 */       if (result == metaData)
/* 279 */         return result;
/* 280 */       old.invalidate();
/*     */     }
/* 282 */     BasicMetaDataItem item = new BasicMetaDataItem(this, type.getName(), metaData);
/* 283 */     this.metaDataByName.put(type.getName(), item);
/* 284 */     invalidateMetaDatasItem();
/* 285 */     invalidate();
/* 286 */     return result;
/*     */   }
View Full Code Here


/* 296 */       return removeAnnotation(type);
/*     */     }
/* 298 */     if (this.metaDataByName == null) {
/* 299 */       return null;
/*     */     }
/* 301 */     BasicMetaDataItem result = (BasicMetaDataItem)this.metaDataByName.remove(type.getName());
/* 302 */     if (result == null)
/* 303 */       return null;
/* 304 */     result.invalidate();
/* 305 */     invalidateMetaDatasItem();
/* 306 */     return result.getValue();
/*     */   }
View Full Code Here

/* 324 */         this.metaDataByName = new ConcurrentHashMap();
/*     */       }
/*     */     }
/* 327 */     Object result = null;
/*     */
/* 329 */     BasicMetaDataItem old = (BasicMetaDataItem)this.metaDataByName.get(name);
/* 330 */     if (old != null)
/*     */     {
/* 332 */       result = old.getValue();
/* 333 */       if (result == metaData)
/* 334 */         return result;
/* 335 */       old.invalidate();
/*     */     }
/* 337 */     BasicMetaDataItem item = new BasicMetaDataItem(this, name, metaData);
/* 338 */     this.metaDataByName.put(name, item);
/* 339 */     invalidateMetaDatasItem();
/* 340 */     invalidate();
/* 341 */     return result;
/*     */   }
View Full Code Here

/*     */     }
/* 350 */     Map temp = this.metaDataByName;
/* 351 */     if (temp == null) {
/* 352 */       return null;
/*     */     }
/* 354 */     BasicMetaDataItem result = (BasicMetaDataItem)temp.remove(name);
/* 355 */     if (result == null)
/* 356 */       return null;
/* 357 */     result.invalidate();
/* 358 */     invalidateMetaDatasItem();
/* 359 */     return result.getValue();
/*     */   }
View Full Code Here

TOP

Related Classes of org.jboss.metadata.spi.retrieval.basic.BasicMetaDataItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.