Examples of MetaDataItem


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

/*     */
/*     */   public <T> MetaDataItem<T> retrieveMetaData(Class<T> type)
/*     */   {
/* 240 */     for (MetaDataRetrieval retrieval : this.retrievals)
/*     */     {
/* 242 */       MetaDataItem item = retrieval.retrieveMetaData(type);
/* 243 */       if (item != null) {
/* 244 */         return item;
/*     */       }
/*     */     }
/* 247 */     if (this.parent != null) {
View Full Code Here

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

/*     */
/*     */   public MetaDataItem retrieveMetaData(String name)
/*     */   {
/* 255 */     for (MetaDataRetrieval retrieval : this.retrievals)
/*     */     {
/* 257 */       MetaDataItem item = retrieval.retrieveMetaData(name);
/* 258 */       if (item != null) {
/* 259 */         return item;
/*     */       }
/*     */     }
/* 262 */     if (this.parent != null) {
View Full Code Here

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

   public MetaDataItem retrieveMetaData(String name)
   {
      for (int i = 0; i < retrievals.size(); ++i)
      {
         MetaDataRetrieval retrieval = retrievals.get(i);
         MetaDataItem item = retrieval.retrieveMetaData(name);
         if (item != null)
            return item;
      }
     
      if (parent != null)
View Full Code Here

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

         validTime = newValidTime;
      }

      if (metaDataByName != null)
      {
         MetaDataItem result = metaDataByName.get(name);
         if (result != null)
         {
            if (result.isValid())
               return result;
            metaDataByName.remove(name);
         }
      }

      MetaDataItem result = super.retrieveMetaData(name);
      if (result != null && result.isCachable())
      {
         if (metaDataByName == null)
            metaDataByName = new ConcurrentHashMap<String, MetaDataItem>();
         metaDataByName.put(name, result);
      }
View Full Code Here

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

   public MetaDataItem retrieveMetaData(String name)
   {
      Map<String, BasicMetaDataItem> temp = metaDataByName;
      if (temp != null)
      {
         MetaDataItem result = temp.get(name);
         if (result != null)
            return result;
      }

      Map<String, BasicAnnotationItem> temp2 = annotations;
View Full Code Here

Examples of org.springframework.roo.metadata.MetadataItem

            // don't care about it
            return;
        }

        // We have an instance-specific identifier; try to get its metadata
        final MetadataItem metadata = metadataService.get(upstreamDependency);

        // We don't have to worry about physical type metadata, as we monitor
        // the relevant .java once the DOD governor is first detected
        if (!(metadata instanceof ItdTypeDetailsProvidingMetadataItem)
                || !metadata.isValid()) {
            // It's not for an ITD, or there's something wrong with it
            return;
        }

        // Get the details of the ITD
View Full Code Here

Examples of org.springframework.roo.metadata.MetadataItem

                            "ITD metadata provider '%s' returned an illegal key ('%s')",
                            mp, key);

                    // Get the metadata and ensure we have ITD type details
                    // available
                    final MetadataItem metadataItem = metadataService.get(key);
                    if (metadataItem == null || !metadataItem.isValid()) {
                        continue;
                    }
                    Validate.isInstanceOf(
                            ItdTypeDetailsProvidingMetadataItem.class,
                            metadataItem,
View Full Code Here

Examples of org.springframework.roo.metadata.MetadataItem

        }
    }

    private void notify(final List<ClassOrInterfaceTypeDetails> entities) {
        for (final ClassOrInterfaceTypeDetails managedIdentifierType : getManagedIdentifiers()) {
            final MetadataItem metadataItem = metadataService
                    .evictAndGet(managedIdentifierType
                            .getDeclaredByMetadataId());
            if (metadataItem != null) {
                notifyIfRequired(metadataItem);
            }
        }

        for (final ClassOrInterfaceTypeDetails entity : entities) {
            final MetadataItem metadataItem = metadataService
                    .evictAndGet(entity.getDeclaredByMetadataId());
            if (metadataItem != null) {
                notifyIfRequired(metadataItem);
            }
        }
View Full Code Here

Examples of org.springframework.roo.metadata.MetadataItem

            // This is the generic fallback listener, ie from
            // MetadataDependencyRegistry.addListener(this) in the activate()
            // method

            // Get the metadata that just changed
            final MetadataItem metadataItem = metadataService
                    .get(upstreamDependency);

            // We don't have to worry about physical type metadata, as we
            // monitor the relevant .java once the DOD governor is first
            // detected
            if (metadataItem == null
                    || !metadataItem.isValid()
                    || !(metadataItem instanceof ItdTypeDetailsProvidingMetadataItem)) {
                // There's something wrong with it or it's not for an ITD, so
                // let's gracefully abort
                return;
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.