Package org.jboss.kernel.spi.dependency

Examples of org.jboss.kernel.spi.dependency.KernelController.install()


   {
      String beanName = createTestBeanName();
      KernelController controller = getController();
      try
      {
         controller.install(new AbstractBeanMetaData(beanName, getClass().getName()), this);
         // we're installed
         testBeanName = beanName;
      }
      catch (Throwable t)
      {
View Full Code Here


         KernelController controller = kernel.getController();
         ServiceControllerContext context = new ServiceControllerContext(this, ServiceControllerMBean.OBJECT_NAME);
         context.setMode(ControllerMode.AUTOMATIC);
         try
         {
            controller.install(context);
         }
         catch (Throwable t)
         {
            log.fatal("Error registering service controller", t);
         }
View Full Code Here

      BeanMetaDataBuilder builder = BeanMetaDataBuilder.createBuilder(id, exposedInterface.getName());
      builder.addAnnotation(wrapJMX(jmx, name, exposedInterface));
      builder.setConstructorValue(new AbstractDependencyValueMetaData(context.getName(), property));

      KernelController controller = (KernelController)context.getController();
      controller.install(builder.getBeanMetaData());

      // no change directly on context
      return null;
   }
View Full Code Here

/* 606 */       KernelController controller = this.kernel.getController();
/* 607 */       ServiceControllerContext context = new ServiceControllerContext(this, MBeanRegistration.OBJECT_NAME);
/* 608 */       context.setMode(ControllerMode.AUTOMATIC);
/*     */       try
/*     */       {
/* 611 */         controller.install(context);
/*     */       }
/*     */       catch (Throwable t)
/*     */       {
/* 615 */         log.fatal("Error registering service controller", t);
/*     */       }
View Full Code Here

/*  81 */     install.setMethodName("addBootstrap");
/*  82 */     metaData.setInstallCallbacks(Collections.singletonList(install));
/*  83 */     UninstallCallbackMetaData uninstall = new UninstallCallbackMetaData();
/*  84 */     uninstall.setMethodName("removeBootstrap");
/*  85 */     metaData.setUninstallCallbacks(Collections.singletonList(uninstall));
/*  86 */     controller.install(metaData, this);
/*     */
/*  89 */     URL url = getConfig().getBootstrapURL();
/*  90 */     if (url == null)
/*     */     {
/*  92 */       URL configURL = getConfig().getServerConfigURL();
View Full Code Here

/*     */   protected void afterSetUp() throws Exception
/*     */   {
/*  52 */     KernelController controller = getController();
/*     */     try
/*     */     {
/*  55 */       controller.install(new AbstractBeanMetaData(this.beanName, getClass().getName()), this);
/*     */     }
/*     */     catch (Throwable t)
/*     */     {
/*  59 */       throw new Exception(t);
/*     */     }
View Full Code Here

   protected void afterSetUp() throws Exception
   {
      KernelController controller = getController();
      try
      {
         controller.install(new AbstractBeanMetaData(beanName, getClass().getName()), this);
      }
      catch (Throwable t)
      {
         throw new Exception(t);
      }
View Full Code Here

   {
      KernelController controller = kernel.getController();
      log.debugf("Deploying %1s", beanMetaData);
      try
      {
         KernelControllerContext result = controller.install(beanMetaData);
         log.debugf("Deployed %1s", result.getName());
         return result;
      }
      catch (Exception e)
      {
View Full Code Here

   {
      String beanName = createTestBeanName();
      KernelController controller = getController();
      try
      {
         controller.install(new AbstractBeanMetaData(beanName, getClass().getName()), this);
         // we're installed
         testBeanName = beanName;
      }
      catch (Throwable t)
      {
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.