Package org.jboss.metadata.spi.scope

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


/*     */     }
/*     */     catch (ClassNotFoundException e)
/*     */     {
/*  96 */       throw new RuntimeException("Unable to load class: " + className + " for " + key, e);
/*     */     }
/*  98 */     key.addScope(new Scope(CommonLevels.CLASS, clazz));
/*  99 */     return key;
/*     */   }
/*     */
/*     */   public void addMetaData(MutableMetaDataRepository repository, ControllerContext context, MemoryMetaDataLoader mutable)
/*     */   {
View Full Code Here


/*     */   {
/*  76 */     if (name == null) {
/*  77 */       throw new IllegalArgumentException("Null scope");
/*     */     }
/*  79 */     ScopeKey scopeKey = ScopeKey.DEFAULT_SCOPE.clone();
/*  80 */     scopeKey.addScope(CommonLevels.INSTANCE, name.toString());
/*  81 */     if (className != null) {
/*  82 */       scopeKey.addScope(CommonLevels.CLASS, className);
/*     */     }
/*  84 */     scopeKey.addScope(CommonLevels.WORK, String.valueOf(hashCode()));
/*  85 */     setScope(scopeKey);
View Full Code Here

/*  77 */       throw new IllegalArgumentException("Null scope");
/*     */     }
/*  79 */     ScopeKey scopeKey = ScopeKey.DEFAULT_SCOPE.clone();
/*  80 */     scopeKey.addScope(CommonLevels.INSTANCE, name.toString());
/*  81 */     if (className != null) {
/*  82 */       scopeKey.addScope(CommonLevels.CLASS, className);
/*     */     }
/*  84 */     scopeKey.addScope(CommonLevels.WORK, String.valueOf(hashCode()));
/*  85 */     setScope(scopeKey);
/*  86 */     setMutableScope(new ScopeKey(CommonLevels.INSTANCE, name.toString()));
/*     */   }
View Full Code Here

/*  79 */     ScopeKey scopeKey = ScopeKey.DEFAULT_SCOPE.clone();
/*  80 */     scopeKey.addScope(CommonLevels.INSTANCE, name.toString());
/*  81 */     if (className != null) {
/*  82 */       scopeKey.addScope(CommonLevels.CLASS, className);
/*     */     }
/*  84 */     scopeKey.addScope(CommonLevels.WORK, String.valueOf(hashCode()));
/*  85 */     setScope(scopeKey);
/*  86 */     setMutableScope(new ScopeKey(CommonLevels.INSTANCE, name.toString()));
/*     */   }
/*     */
/*     */   public AbstractScopeInfo(ScopeKey key, ScopeKey mutable)
View Full Code Here

/*  50 */       throw new IllegalArgumentException("Null context");
/*     */     }
/*  52 */     DeploymentContext top = context.getTopLevel();
/*     */
/*  54 */     ScopeKey result = ScopeKey.DEFAULT_SCOPE.clone();
/*  55 */     result.addScope(CommonLevels.APPLICATION, top.getName());
/*  56 */     result.addScope(CommonLevels.DEPLOYMENT, context.getName());
/*  57 */     return result;
/*     */   }
/*     */
/*     */   public ScopeKey getMutableDeploymentScope(DeploymentContext context)
View Full Code Here

/*     */     }
/*  52 */     DeploymentContext top = context.getTopLevel();
/*     */
/*  54 */     ScopeKey result = ScopeKey.DEFAULT_SCOPE.clone();
/*  55 */     result.addScope(CommonLevels.APPLICATION, top.getName());
/*  56 */     result.addScope(CommonLevels.DEPLOYMENT, context.getName());
/*  57 */     return result;
/*     */   }
/*     */
/*     */   public ScopeKey getMutableDeploymentScope(DeploymentContext context)
/*     */   {
View Full Code Here

/*  79 */       parent = context.getParent();
/*  80 */       if (parent == null)
/*  81 */         throw new IllegalStateException("Component has no regular parent?");
/*     */     }
/*  83 */     ScopeKey result = parent.getScope().clone();
/*  84 */     result.addScope(CommonLevels.INSTANCE, context.getName());
/*  85 */     return result;
/*     */   }
/*     */
/*     */   public ScopeKey getMutableComponentScope(DeploymentContext context)
/*     */   {
View Full Code Here

   {
      if (name == null)
         throw new IllegalArgumentException("Null scope");

      ScopeKey scopeKey = ScopeKey.DEFAULT_SCOPE.clone();
      scopeKey.addScope(CommonLevels.INSTANCE, name.toString());
      if (className != null)
         scopeKey.addScope(CommonLevels.CLASS, className);
      setScope(scopeKey);
      setMutableScope(new ScopeKey(CommonLevels.INSTANCE, name.toString()));
   }
View Full Code Here

         throw new IllegalArgumentException("Null scope");

      ScopeKey scopeKey = ScopeKey.DEFAULT_SCOPE.clone();
      scopeKey.addScope(CommonLevels.INSTANCE, name.toString());
      if (className != null)
         scopeKey.addScope(CommonLevels.CLASS, className);
      setScope(scopeKey);
      setMutableScope(new ScopeKey(CommonLevels.INSTANCE, name.toString()));
   }
  
   /**
 
View Full Code Here

         Annotation[] fieldAnnotations)
   {
      MutableMetaDataRepository repository = new BasicMetaDataRepository();
     
      ScopeKey scopeKey = ScopeKey.DEFAULT_SCOPE.clone();
      scopeKey.addScope(CommonLevels.INSTANCE, "Test");
      scopeKey.addScope(CommonLevels.CLASS, advisor.getClazz().getName());
      scopeKey.addScope(CommonLevels.WORK, String.valueOf(hashCode()));
      ScopeKey key = scopeKey;
      ScopeKey mutableScope = new ScopeKey(CommonLevels.INSTANCE, "Test".toString());
      MemoryMetaDataLoader mutable = new MemoryMetaDataLoader(mutableScope);
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.