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

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


      KernelMetaDataRepository kmdr = kernel.getMetaDataRepository();
      MutableMetaDataRepository repository = kmdr.getMetaDataRepository();
      MetaDataRetrieval retrieval = repository.getMetaDataRetrieval(ScopeKey.DEFAULT_SCOPE);
      if (retrieval == null)
      {
         retrieval = new MemoryMetaDataLoader(ScopeKey.DEFAULT_SCOPE);
         repository.addMetaDataRetrieval(retrieval);
      }
      if (retrieval instanceof MutableMetaData)
      {
         MutableMetaData mmd = (MutableMetaData)retrieval;
View Full Code Here


      threadLocal.set(null);
   }
  
   public ScopeKey getScope()
   {
      MemoryMetaDataLoader delegate = threadLocal.get();
      if (delegate == null)
         return getThreadScopeKey();
      else
         return delegate.getScope();
   }
View Full Code Here

      return false;
   }

   public ValidTime getValidTime()
   {
      MemoryMetaDataLoader delegate = threadLocal.get();
      if (delegate == null)
         return super.getValidTime();
      return delegate.getValidTime();
   }
View Full Code Here

      return delegate.getValidTime();
   }

   public void invalidate()
   {
      MemoryMetaDataLoader delegate = threadLocal.get();
      if (delegate == null)
         super.invalidate();
      else
         delegate.invalidate();
   }
View Full Code Here

         delegate.invalidate();
   }

   public AnnotationsItem retrieveAnnotations()
   {
      MemoryMetaDataLoader delegate = threadLocal.get();
      if (delegate == null)
         return NO_ANNOTATIONS;
      return delegate.retrieveAnnotations();
   }
View Full Code Here

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

      return delegate.retrieveAnnotation(annotationType);
   }

   public <T extends Annotation> T addAnnotation(T annotation)
   {
      MemoryMetaDataLoader delegate = threadLocal.get();
      if (delegate == null)
      {
         delegate = new MemoryMetaDataLoader(getThreadScopeKey(), false, true);
         threadLocal.set(delegate);
      }
      return delegate.addAnnotation(annotation);
   }
View Full Code Here

      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

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.