Package org.jboss.metadata.spi.repository

Examples of org.jboss.metadata.spi.repository.MetaDataRepository


   }

   protected ScopeKey assertRetrievals(String name)
   {
      KernelControllerContext context = getControllerContext(name);
      MetaDataRepository repository = getMetaDataRepository().getMetaDataRepository();
      ScopeKey result = context.getScopeInfo().getScope();
      assertNotNull(repository.getMetaDataRetrieval(result));
      assertNotNull(repository.getMetaDataRetrieval(new ScopeKey(CommonLevels.INSTANCE, name)));
      return result;
   }
View Full Code Here


      return result;
   }
  
   protected void assertNoRetrievals(String name, ScopeKey scope)
   {
      MetaDataRepository repository = getMetaDataRepository().getMetaDataRepository();
      assertNull(repository.getMetaDataRetrieval(scope));
      assertNull(repository.getMetaDataRetrieval(new ScopeKey(CommonLevels.INSTANCE, name)));
   }
View Full Code Here

      }
     
      if (md != null && md.size() > 0)
         return true;

      MetaDataRepository repository = context.getKernel().getMetaDataRepository().getMetaDataRepository();
      ScopeKey key = context.getScopeInfo().getScope();
      while (key != null)
      {
         MetaData metaData = repository.getMetaData(key);
         if (metaData != null)
         {
            if (metaData.getMetaData(WANTED_MDR.getKey(REQUIRED_QUALIFIER_KEY, point)) != null)
               return true;
            if (metaData.getMetaData(WANTED_MDR.getKey(OPTIONAL_QUALIFIER_KEY, point)) != null)
View Full Code Here

      {
         log.warn("You have defined annotations for bean '" + context.getName() + "', but no MetaDataRepository has been installed under the name 'Repository'");
         return null;
      }

      MetaDataRepository repository = (MetaDataRepository)repCtx.getTarget();
      MetaDataContextFactory metaFactory = context.getBeanInfo().getMetaDataContextFactory();
      ClassLoader beanLoader = context.getBeanInfo().getClassInfo().getType().getClassLoader();
      MetaDataContext metaCtx = metaFactory.getMetaDataContext(beanLoader, repository, (String)context.getName());
     
      if (metaCtx instanceof MutableMetaDataContext == false)
View Full Code Here

TOP

Related Classes of org.jboss.metadata.spi.repository.MetaDataRepository

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.