Package org.jboss.kernel.plugins.bootstrap.basic

Examples of org.jboss.kernel.plugins.bootstrap.basic.BasicBootstrap


/*     */   }
/*     */
/*     */   protected void doStart(StopWatch watch)
/*     */     throws Throwable
/*     */   {
/*  73 */     BasicBootstrap bootstrap = new BasicBootstrap();
/*  74 */     bootstrap.run();
/*  75 */     this.kernel = bootstrap.getKernel();
/*     */
/*  78 */     KernelController controller = this.kernel.getController();
/*  79 */     AbstractBeanMetaData metaData = new AbstractBeanMetaData("JBossServer", getClass().getName());
/*  80 */     InstallCallbackMetaData install = new InstallCallbackMetaData();
/*  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();
/*  93 */       url = new URL(configURL, BOOTSTRAP_XML_NAME);
/*  94 */       this.log.info("Starting Microcontainer, bootstrapURL=" + url);
/*     */     }
/*     */
/*  98 */     this.kernelDeployer = new BasicXMLDeployer(this.kernel);
/*     */
/* 101 */     this.kernelDeployer.deploy(url);
/*     */
/* 104 */     this.kernelDeployer.validate();
/*     */
/* 107 */     KernelEvent startEvent = bootstrap.createEvent("org.jboss.system.server.started", new Long(watch.getLapTime()));
/* 108 */     bootstrap.fireKernelEvent(startEvent);
/*     */
/* 110 */     this.bootstrap = bootstrap;
/*     */   }
View Full Code Here


/*     */   }
/*     */
/*     */   protected AbstractBootstrap getBootstrap()
/*     */     throws Exception
/*     */   {
/* 141 */     return new BasicBootstrap();
/*     */   }
View Full Code Here

    * @return the bootstrap
    * @throws Exception for any error
    */
   protected AbstractBootstrap getBootstrap() throws Exception
   {
      return new BasicBootstrap();
   }
View Full Code Here

   private static Ejb3Registrar registrar;

   @BeforeClass
   public static void beforeClass()
   {
      bootstrap = new BasicBootstrap();
      bootstrap.run();
      final Kernel kernel = bootstrap.getKernel();
      registrar = new Ejb3McRegistrar(kernel);
   }
View Full Code Here

   @BeforeClass
   public static void beforeClass() throws Throwable
   {
      // Create and set a new MC Bootstrap
      BasicBootstrap bootstrap = new BasicBootstrap();
      Ejb3McRegistrarTestCase.setBootstrap(bootstrap);
      bootstrap.run();
      Kernel kernel = bootstrap.getKernel();

      // Bind the Ejb3Registrar
      Ejb3RegistrarLocator.bindRegistrar(new Ejb3McRegistrar(kernel));

      // Deploy
View Full Code Here

   private static String[] init(String[] args) throws Throwable
   {
      // Extract any launcher args from the input
      String[] newArgs = parseArgs(args);
      // Bootstrap the kernel
      AbstractBootstrap bootstrap = new BasicBootstrap();
      bootstrap.run();
      kernel = bootstrap.getKernel();
     
      // Create the deployer
      deployer = createDeployer();

      return newArgs;
View Full Code Here

    * @return the bootstrap
    * @throws Exception for any error
    */
   protected AbstractBootstrap getBootstrap() throws Exception
   {
      return new BasicBootstrap();
   }
View Full Code Here

TOP

Related Classes of org.jboss.kernel.plugins.bootstrap.basic.BasicBootstrap

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.