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

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


/*     */       }
/*     */     }
/* 157 */     Annotation result = null;
/*     */
/* 159 */     Class annotationType = annotation.annotationType();
/* 160 */     BasicAnnotationItem old = (BasicAnnotationItem)this.annotations.get(annotationType.getName());
/* 161 */     if (old != null)
/*     */     {
/* 163 */       result = old.getAnnotation();
/* 164 */       if (result == annotation)
/* 165 */         return result;
/* 166 */       old.invalidate();
/*     */     }
/*     */
/* 169 */     BasicAnnotationItem item = new BasicAnnotationItem(this, annotation);
/* 170 */     this.annotations.put(annotationType.getName(), item);
/* 171 */     invalidateAnnotationsItem();
/* 172 */     invalidateMetaDatasItem();
/* 173 */     invalidate();
/* 174 */     return result;
View Full Code Here


/*     */
/*     */   public <T extends Annotation> T removeAnnotation(Class<T> annotationType)
/*     */   {
/* 180 */     if (this.annotations == null)
/* 181 */       return null;
/* 182 */     BasicAnnotationItem annotation = (BasicAnnotationItem)this.annotations.remove(annotationType.getName());
/* 183 */     if (annotation == null)
/* 184 */       return null;
/* 185 */     annotation.invalidate();
/* 186 */     invalidateAnnotationsItem();
/* 187 */     invalidateMetaDatasItem();
/* 188 */     return annotation.getAnnotation();
/*     */   }
View Full Code Here

TOP

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

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.