Examples of ScopeInfo


Examples of org.jboss.dependency.spi.ScopeInfo

      @Override
      public void install(ControllerState fromState, ControllerState toState) throws Throwable
      {
         if (toState.equals(ControllerState.INSTANTIATED))
         {
            ScopeInfo scopeInfo = getScopeInfo();
            scopeInfo.addMetaData(repository, this);
            ScopeKey scope = scopeInfo.getMutableScope();
            MemoryMetaDataLoader loader = (MemoryMetaDataLoader) repository.getMetaDataRetrieval(scope);
            loader.addMetaData("FromInstall", "testFromInstall", String.class);
           
            // Initialise the full key
            ScopeKey full = scopeInfo.getScope();
            if (repository.getMetaDataRetrieval(full) == null)
               scopeInfo.initMetaDataRetrieval(repository, this);
         }
      }
View Full Code Here

Examples of org.jboss.dependency.spi.ScopeInfo

      @Override
      public void uninstall(ControllerState fromState, ControllerState toState)
      {
         if (fromState.equals(ControllerState.INSTANTIATED))
         {
            ScopeInfo scopeInfo = getScopeInfo();
            ScopeKey scope = scopeInfo.getMutableScope();
            MemoryMetaDataLoader loader = (MemoryMetaDataLoader) repository.getMetaDataRetrieval(scope);
            loader.removeMetaData("FromInstall", String.class);
            scopeInfo.removeMetaData(repository, this);
         }
      }
View Full Code Here

Examples of org.jboss.dependency.spi.ScopeInfo

   protected MetaData assertMetaData(String name)
   {
      KernelControllerContext context = getControllerContext(name);
      assertNotNull(context);
      ScopeInfo scopeInfo = context.getScopeInfo();
      assertNotNull(scopeInfo);
      MetaData metaData = scopeInfo.getMetaData();
      assertNotNull(metaData);
      return metaData;
   }
View Full Code Here

Examples of org.jboss.dependency.spi.ScopeInfo

            // update class scope with class info
            KernelMetaDataRepository repository = kernel.getMetaDataRepository();
            // remove old context
            repository.removeMetaData(context);
            // create new scope key
            ScopeInfo scopeInfo = context.getScopeInfo();
            ScopeKey scopeKey = new ScopeKey(scopeInfo.getScope().getScopes());
            scopeKey.addScope(CommonLevels.CLASS, info.getClassInfo().getType());
            scopeInfo.setScope(scopeKey);
            // re-register
            repository.addMetaData(context);

            // handle custom annotations
            applyAnnotations(context);
View Full Code Here

Examples of org.jboss.dependency.spi.ScopeInfo

      return dependencyInfo != null ? new UnmodifiableDependencyInfo(dependencyInfo) : null;
   }

   public ScopeInfo getScopeInfo()
   {
      ScopeInfo scopeInfo = delegate.getScopeInfo();
      return scopeInfo != null ? new UnmodifiableScopeInfo(scopeInfo) : null;
   }
View Full Code Here

Examples of org.jboss.dependency.spi.ScopeInfo

         {
            log.debug("Unable to retrieve classloader for deployment: " + unit.getName() + " reason=" + e.toString());
         }
      }
      KernelControllerContext context = new AbstractKernelControllerContext(null, deployment, null);
      ScopeInfo scopeInfo = context.getScopeInfo();
      scopeInfo.setScope(unit.getScope());
      scopeInfo.setMutableScope(unit.getMutableScope());
      try
      {
         controller.install(context);
      }
      catch (Throwable t)
View Full Code Here

Examples of org.jboss.dependency.spi.ScopeInfo

      return dependencyInfo != null ? new UnmodifiableDependencyInfo(dependencyInfo) : null;
   }

   public ScopeInfo getScopeInfo()
   {
      ScopeInfo scopeInfo = delegate.getScopeInfo();
      return scopeInfo != null ? new UnmodifiableScopeInfo(scopeInfo) : null;
   }
View Full Code Here

Examples of org.jboss.dependency.spi.ScopeInfo

         {
            log.debug("Unable to retrieve classloader for deployment: " + unit.getName() + " reason=" + e.toString());
         }
      }
      KernelControllerContext context = new AbstractKernelControllerContext(null, deployment, null);
      ScopeInfo scopeInfo = context.getScopeInfo();
      scopeInfo.setScope(unit.getScope());
      scopeInfo.setMutableScope(unit.getMutableScope());
      try
      {
         controller.install(context);
      }
      catch (Throwable t)
View Full Code Here

Examples of org.jboss.dependency.spi.ScopeInfo

               log.debug("Unable to retrieve classloader for deployment: " + unit.getName() + " reason=" + e.toString());
            }
         }
         KernelControllerContext context = new AbstractKernelControllerContext(null, deployment, null);
         //Make sure that the metadata from the deployment gets put into the context
         ScopeInfo scopeInfo = context.getScopeInfo();
         if (scopeInfo != null)
         {
            mergeScopes(scopeInfo.getScope(), unit.getScope());
            mergeScopes(scopeInfo.getMutableScope(), unit.getMutableScope());
         }
        
//         KernelControllerContext context = new AbstractKernelControllerContext(null, deployment, null);
//         ScopeInfo scopeInfo2 = context.getScopeInfo();
//         if (scopeInfo2 != null)
View Full Code Here

Examples of org.jboss.dependency.spi.ScopeInfo

            // update class scope with class info
            repository = kernel.getMetaDataRepository();
            // remove old context
            repository.removeMetaData(context);
            // create new scope key
            ScopeInfo scopeInfo = context.getScopeInfo();
            ScopeKey scopeKey = new ScopeKey(scopeInfo.getScope().getScopes());
            scopeKey.addScope(CommonLevels.CLASS, info.getClassInfo().getType());
            scopeInfo.setScope(scopeKey);
            // re-register
            repository.addMetaData(context);

            QualifiersMdrUtil.populateQualifiersForContext(context);
           
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.