Package org.jboss.metadata.spi.scope

Examples of org.jboss.metadata.spi.scope.ScopeKey.addScope()


         parent = context.getParent();
         if (parent == null)
            throw new IllegalStateException("Component has no regular parent?");
      }
      ScopeKey result = parent.getScope().clone();
      result.addScope(CommonLevels.INSTANCE, context.getName());
      return result;
   }

   public ScopeKey getMutableComponentScope(DeploymentContext context)
   {
View Full Code Here


      }
      catch (ClassNotFoundException e)
      {
         throw new RuntimeException("Unable to load class: " + className + " for " + key, e);
      }
      key.addScope(new Scope(CommonLevels.CLASS, clazz));
      return key;
   }

   @Override
   public void addMetaData(MutableMetaDataRepository repository, ControllerContext context, MemoryMetaDataLoader mutable)
View Full Code Here

      public void deploy(DeploymentUnit unit, TestComponentMetaData deployment) throws DeploymentException
      {
         // Add in the class scope
         ScopeKey key = unit.getScope();
         key.addScope(CommonLevels.CLASS, deployment.clazz);
        
         // Populate the instance annotations
         MutableMetaData mutable = unit.getMutableMetaData();
         for (Annotation annotation : deployment.classAnnotations)
            mutable.addAnnotation(annotation);
View Full Code Here

         repository.addMetaDataRetrieval(loader);

         // Add it to our scope
         ScopeKey key = unit.getScope();
         for (Scope scope : loader.getScope().getScopes())
            key.addScope(scope);
        
         // Add the loader
         ScopeKey mutableScope = unit.getMutableScope();
         TestComponentMetaDataLoader componentMetaDataLoader = new TestComponentMetaDataLoader(mutableScope, deployment);
         repository.addMetaDataRetrieval(componentMetaDataLoader);
View Full Code Here

   }

   public static ScopeKey createScope(String app, String dep)
   {
      ScopeKey result = ScopeKey.DEFAULT_SCOPE.clone();
      result.addScope(CommonLevels.APPLICATION, app);
      result.addScope(CommonLevels.DEPLOYMENT, dep);
      return result;
   }

   public static ScopeKey createComponentScope(String app, String dep, String comp)
View Full Code Here

   public static ScopeKey createScope(String app, String dep)
   {
      ScopeKey result = ScopeKey.DEFAULT_SCOPE.clone();
      result.addScope(CommonLevels.APPLICATION, app);
      result.addScope(CommonLevels.DEPLOYMENT, dep);
      return result;
   }

   public static ScopeKey createComponentScope(String app, String dep, String comp)
   {
View Full Code Here

   }

   public static ScopeKey createComponentScope(String app, String dep, String comp)
   {
      ScopeKey result = createScope(app, dep);
      result.addScope(CommonLevels.INSTANCE, comp);
      return result;
   }
  
   public static Test suite()
   {
View Full Code Here

      }
      catch (ClassNotFoundException e)
      {
         throw new RuntimeException("Unable to load class: " + className + " for " + key, e);
      }
      key.addScope(new Scope(CommonLevels.CLASS, clazz));
      return key;
   }

   @Override
   public void addMetaData(MutableMetaDataRepository repository, ControllerContext context, MemoryMetaDataLoader mutable)
View Full Code Here

      }
      catch (ClassNotFoundException e)
      {
         throw new RuntimeException("Unable to load class: " + className + " for " + key, e);
      }
      key.addScope(new Scope(CommonLevels.CLASS, clazz));
      return key;
   }

   @Override
   public void addMetaData(MutableMetaDataRepository repository, ControllerContext context, MemoryMetaDataLoader mutable)
View Full Code Here

   {
      if (scope == null)
      {
         ScopeKey key = parent.getScope().clone();
         key.removeScopeLevel(CommonLevels.INSTANCE);
         key.addScope(CommonLevels.INSTANCE, bmd.getName());
      }
      return scope;
   }
  
   ScopeKey getMutableScope()
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.