Package org.jboss.metadata.plugins.loader.memory

Examples of org.jboss.metadata.plugins.loader.memory.MemoryMetaDataLoader


      return delegate.addAnnotation(annotation);
   }
  
   public <T extends Annotation> T removeAnnotation(Class<T> annotationType)
   {
      MemoryMetaDataLoader delegate = threadLocal.get();
      if (delegate == null)
         return null;
      return delegate.removeAnnotation(annotationType);
   }
View Full Code Here


      return delegate.removeAnnotation(annotationType);
   }

   public MetaDatasItem retrieveMetaData()
   {
      MemoryMetaDataLoader delegate = threadLocal.get();
      if (delegate == null)
         return NO_META_DATA;
      return delegate.retrieveMetaData();
   }
View Full Code Here

      return delegate.retrieveMetaData();
   }

   public <T> MetaDataItem<T> retrieveMetaData(Class<T> type)
   {
      MemoryMetaDataLoader delegate = threadLocal.get();
      if (delegate == null)
         return null;
      return delegate.retrieveMetaData(type);
   }
View Full Code Here

      return delegate.retrieveMetaData(type);
   }

   public MetaDataItem retrieveMetaData(String name)
   {
      MemoryMetaDataLoader delegate = threadLocal.get();
      if (delegate == null)
         return null;
      return delegate.retrieveMetaData(name);
   }
View Full Code Here

      return delegate.retrieveMetaData(name);
   }

   public <T> T addMetaData(T metaData, Class<T> type)
   {
      MemoryMetaDataLoader delegate = threadLocal.get();
      if (delegate == null)
      {
         delegate = new MemoryMetaDataLoader(getThreadScopeKey(), false, true);
         threadLocal.set(delegate);
      }
      return delegate.addMetaData(metaData, type);
   }
View Full Code Here

      return delegate.addMetaData(metaData, type);
   }

   public <T> T removeMetaData(Class<T> type)
   {
      MemoryMetaDataLoader delegate = threadLocal.get();
      if (delegate == null)
         return null;
      return delegate.removeMetaData(type);
   }
View Full Code Here

      return delegate.removeMetaData(type);
   }

   public <T> T addMetaData(String name, T metaData, Class<T> type)
   {
      MemoryMetaDataLoader delegate = threadLocal.get();
      if (delegate == null)
      {
         delegate = new MemoryMetaDataLoader(getThreadScopeKey(), false, true);
         threadLocal.set(delegate);
      }
      return delegate.addMetaData(name, metaData, type);
   }
View Full Code Here

      return delegate.addMetaData(name, metaData, type);
   }

   public <T> T removeMetaData(String name, Class<T> type)
   {
      MemoryMetaDataLoader delegate = threadLocal.get();
      if (delegate == null)
         return null;
      return delegate.removeMetaData(name, type);
   }
View Full Code Here

      return delegate.removeMetaData(name, type);
   }

   public boolean isEmpty()
   {
      MemoryMetaDataLoader delegate = threadLocal.get();
      return delegate == null || delegate.isEmpty();
   }
View Full Code Here

    * @param annotations the annotations
    */
   private void addAnnotations(ClassLoader classloader, MemoryMetaDataLoader mutable, MethodInfo methodInfo, Set<AnnotationMetaData> annotations)
   {
      ScopeKey scope = new ScopeKey(CommonLevels.JOINPOINT_OVERRIDE, methodInfo.getName());
      MemoryMetaDataLoader loader = new MemoryMetaDataLoader(scope);
      addAnnotations(classloader, loader, annotations);
      mutable.addComponentMetaDataRetrieval(new MethodSignature(methodInfo), loader);
   }
View Full Code Here

TOP

Related Classes of org.jboss.metadata.plugins.loader.memory.MemoryMetaDataLoader

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.