Package org.jboss.metadata.spi.retrieval

Examples of org.jboss.metadata.spi.retrieval.AnnotationItem


/* 128 */       this.validTime = newValidTime;
/*     */     }
/*     */
/* 131 */     if (this.annotations != null)
/*     */     {
/* 133 */       AnnotationItem result = (AnnotationItem)this.annotations.get(annotationName);
/* 134 */       if (result != null)
/*     */       {
/* 136 */         if (result.isValid())
/* 137 */           return result;
/* 138 */         this.annotations.remove(annotationName);
/*     */       }
/*     */     }
/*     */
/* 142 */     AnnotationItem result = super.retrieveAnnotation(annotationType);
/* 143 */     if ((result != null) && (result.isCachable()))
/*     */     {
/* 145 */       if (this.annotations == null)
/* 146 */         this.annotations = new ConcurrentHashMap();
/* 147 */       this.annotations.put(annotationName, result);
/*     */     }
View Full Code Here


/* 56 */     if (object == this)
/* 57 */       return true;
/* 58 */     if ((object == null) || (!(object instanceof AnnotationItem))) {
/* 59 */       return false;
/*    */     }
/* 61 */     AnnotationItem other = (AnnotationItem)object;
/* 62 */     return getAnnotation().annotationType().equals(other.getAnnotation().annotationType());
/*    */   }
View Full Code Here

/* 54 */     if (object == this)
/* 55 */       return true;
/* 56 */     if ((object == null) || (!(object instanceof AnnotationItem))) {
/* 57 */       return false;
/*    */     }
/* 59 */     AnnotationItem other = (AnnotationItem)object;
/* 60 */     return getAnnotation().annotationType().equals(other.getAnnotation().annotationType());
/*    */   }
View Full Code Here

/*     */
/*     */   public <T> MetaDataItem<T> retrieveMetaData(Class<T> type)
/*     */   {
/*  99 */     if (!type.isAnnotation())
/* 100 */       return null;
/* 101 */     AnnotationItem annotation = retrieveAnnotation(type);
/* 102 */     if (annotation == null)
/* 103 */       return null;
/* 104 */     return new AnnotationToMetaDataBridge(annotation);
/*     */   }
View Full Code Here

/*     */
/*     */   public <T extends Annotation> AnnotationItem<T> retrieveAnnotation(Class<T> annotationType)
/*     */   {
/* 215 */     for (MetaDataRetrieval retrieval : this.retrievals)
/*     */     {
/* 217 */       AnnotationItem item = retrieval.retrieveAnnotation(annotationType);
/* 218 */       if (item != null) {
/* 219 */         return item;
/*     */       }
/*     */     }
/* 222 */     if (this.parent != null) {
View Full Code Here

TOP

Related Classes of org.jboss.metadata.spi.retrieval.AnnotationItem

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.