/* */ }
/* */
/* */ 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;
/* */ }