Package org.jboss.metadata.spi.scope

Examples of org.jboss.metadata.spi.scope.ScopeKey


      if (repository == null)
         return;
     
      try
      {
         ScopeKey scope = deploymentContext.getScope();
         repository.removeMetaDataRetrieval(scope);
      }
      catch (Throwable ignored)
      {
      }

      try
      {
         ScopeKey scope = deploymentContext.getMutableScope();
         repository.removeMetaDataRetrieval(scope);
      }
      catch (Throwable ignored)
      {
      }
View Full Code Here


   {
      MutableMetaDataRepository repository = getRepository(deploymentContext);
      if (repository == null)
         return null;

      ScopeKey mutableScope = deploymentContext.getMutableScope();
      MetaDataRetrieval retrieval = repository.getMetaDataRetrieval(mutableScope);
      if (retrieval == null)
      {
         initMutableMetaDataRetrieval(repository, deploymentContext);
         retrieval = repository.getMetaDataRetrieval(mutableScope);
View Full Code Here

      return assertMetaData("Name1");
   }

   public void testClassAnnotationNoOverride() throws Throwable
   {
      ScopeKey scope = null;
      KernelDeployment deployment = deploy("ClassAnnotationTestCase_NoOverride.xml");
      try
      {
         scope = assertRetrievals("Name1");
         MetaData metaData = assertMetaData();
View Full Code Here

      }
   }

   public void testClassAnnotationOverride() throws Throwable
   {
      ScopeKey scope = null;
      KernelDeployment deployment = deploy("ClassAnnotationTestCase_Override.xml");
      try
      {
         scope = assertRetrievals("Name1");
         MetaData metaData = assertMetaData();
View Full Code Here

      }
   }

   public void testClassAnnotationNew() throws Throwable
   {
      ScopeKey scope = null;
      KernelDeployment deployment = deploy("ClassAnnotationTestCase_New.xml");
      try
      {
         scope = assertRetrievals("Name1");
         MetaData metaData = assertMetaData();
View Full Code Here

      }
   }

   public void testPropertyAnnotationNoOverride() throws Throwable
   {
      ScopeKey scope = null;
      KernelDeployment deployment = deploy("ClassAnnotationTestCase_NoOverrideProperty.xml");
      try
      {
         scope = assertRetrievals("Name1");
         MetaData classMetaData = assertMetaData();
View Full Code Here

      }
   }

   public void testPropertyAnnotationOverride() throws Throwable
   {
      ScopeKey scope = null;
      KernelDeployment deployment = deploy("ClassAnnotationTestCase_OverrideProperty.xml");
      try
      {
         scope = assertRetrievals("Name1");
         MetaData classMetaData = assertMetaData();
View Full Code Here

      }
   }

   public void testPropertyAnnotationNew() throws Throwable
   {
      ScopeKey scope = null;
      KernelDeployment deployment = deploy("ClassAnnotationTestCase_NewProperty.xml");
      try
      {
         scope = assertRetrievals("Name1");
         MetaData classMetaData = assertMetaData();
View Full Code Here

         assertUnsupported(t);
      }

      NameAwareBean scopekey = (NameAwareBean)getBean("scopekey");
      assertNotNull(scopekey);
      ScopeKey key = scopekey.getScopeKey();
      assertNotNull(key);
      assertInstanceOf(key, ScopeKey.class);
      KernelControllerContext context = getControllerContext("scopekey");
      assertEquals(key, context.getScopeInfo().getScope());
View Full Code Here

      assertEquals(1, parameters.size());
   }

   public void testProvidedMetaData() throws Throwable
   {
      MemoryMetaDataLoader memory = new MemoryMetaDataLoader(new ScopeKey(CommonLevels.INSTANCE, "foobar"));
      memory.addAnnotation(new AliasesImpl("alias"));
      MetaDataRetrieval retrieval = new AbstractMetaDataContext(null, memory);
      MetaData metaData = new MetaDataRetrievalToMetaDataBridge(retrieval);

      BeanMetaData bmd = AnnotationToBeanMetaDataFactory.createBeanMetaData(Object.class, metaData);
View Full Code Here

TOP

Related Classes of org.jboss.metadata.spi.scope.ScopeKey

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.