Package org.jboss.dependency.plugins

Examples of org.jboss.dependency.plugins.AbstractController$InnerAliasControllerContext


               mbeanServer.registerMBean(new JmxCL(loader), new ObjectName("jboss:service=defaultClassLoader"));

               BasicBootstrap bootstrap = new BasicBootstrap();
               bootstrap.run();
               Kernel kernel = bootstrap.getKernel();
               AbstractController controller = (AbstractController)kernel.getController();

               serviceController.setMBeanServer(mbeanServer);
               serviceController.setKernel(kernel);

               MainDeployerImpl mainDeployer = new MainDeployerImpl();
View Full Code Here


   }
  
   protected void setUp() throws Exception
   {
      super.setUp();
      controller = new AbstractController();
      Ordering.resetOrder();
      enableTrace("org.jboss.dependency");
   }
View Full Code Here

      // Create profile service
      MockMainDeployer mainDeployer = new MockMainDeployer();
      MainDeployerAdapter adapter = new MainDeployerAdapter();
      adapter.setMainDeployer(mainDeployer);
      adapter.setAttachmentStore(new MockAttachmentStore());
      AbstractController parentController = new AbstractController();
      AbstractProfileService profileService = new AbstractProfileService(parentController);
      profileService.setDeployer(adapter);
      //
      profileService.create();
      this.profileService = profileService;
View Full Code Here

            throw new IllegalArgumentException("Can only handle AbstractKernelController: " + controller);

         AbstractKernelController kernelController = (AbstractKernelController)controller;
         KernelMetaDataRepository repository = kernelController.getKernel().getMetaDataRepository();
         MutableMetaDataRepository mmdr = repository.getMetaDataRepository();
         AbstractController abstractController = ScopeHierarchyBuilder.buildControllerHierarchy(kernelController, mmdr, scopeKey);
         if (abstractController instanceof ScopedKernelController == false)
            throw new IllegalArgumentException("Should be ScopedKernelController instance: " + abstractController);

         ScopedKernelController scopedController = (ScopedKernelController)abstractController;
         scopedController.addScopedControllerContext(context);
View Full Code Here

   }
  
   protected void setUp() throws Exception
   {
      super.setUp();
      controller = new AbstractController();
      Ordering.resetOrder();
      //enableTrace("org.jboss.dependency");
   }
View Full Code Here

      {
         mdr = new MemoryMetaDataLoader(scopeKey);
         mmdr.addMetaDataRetrieval(mdr);         
      }

      AbstractController parentController = buildControllerHierarchy(top, mmdr, scopeKey.getParent());
      ScopedKernelController scopedKernelController = new ScopedKernelController(top.getKernel(), parentController, scopeKey);
      ((MutableMetaData)mdr).addMetaData(scopedKernelController, ScopedKernelController.class);

      return scopedKernelController;
   }
View Full Code Here

         if (controller instanceof AbstractKernelController == false)
            throw new IllegalArgumentException("Can only handle AbstractKernelController: " + controller);

         MutableMetaDataRepository mmdr = repository.getMetaDataRepository();
         AbstractController abstractController = ScopeHierarchyBuilder.buildControllerHierarchy((AbstractKernelController)controller, mmdr, scopeKey);
         if (abstractController instanceof ScopedKernelController == false)
            throw new IllegalArgumentException("Should be ScopedKernelController instance: " + abstractController);

         ScopedKernelController scopedController = (ScopedKernelController)abstractController;
         scopedController.addScopedControllerContext(context);
View Full Code Here

         if (controller instanceof AbstractKernelController == false)
            throw new IllegalArgumentException("Can only handle AbstractKernelController: " + controller);

         MutableMetaDataRepository mmdr = repository.getMetaDataRepository();
         AbstractController abstractController = ScopeHierarchyBuilder.buildControllerHierarchy((AbstractKernelController)controller, mmdr, scopeKey);
         if (abstractController instanceof ScopedKernelController == false)
            throw new IllegalArgumentException("Should be ScopedKernelController instance: " + abstractController);

         ScopedKernelController scopedController = (ScopedKernelController)abstractController;
         scopedController.addScopedControllerContext(context);
View Full Code Here

   /**
    * Perform release of resources.
    */
   void release()
   {
      AbstractController controller = getParentController();
      if (controller != null)
         controller.removeController(this);
      else
         log.debugf("Parent controller already released, cannot remove this: %1s", this);

      setUnderlyingController(null);
      setParentController(null);
View Full Code Here

         {
            scopedController = controllerItem.getValue();
         }
         else
         {
            AbstractController parentController = null;
            ScopeKey parentKey = scopeKey.getParent();
            while (parentController == null && parentKey != null)
            {
               MetaDataRetrieval pmdr = mmdr.getMetaDataRetrieval(parentKey);
               if (pmdr != null)
View Full Code Here

TOP

Related Classes of org.jboss.dependency.plugins.AbstractController$InnerAliasControllerContext

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.