registerComponent("MonitorProxyService", MonitorProxyService.class, monitorService, true); registerComponent("DestinationRouter", DestinationRouter.class, router, true); Class<HostInfo> type = getHostInfoType(hostInfo); registerComponent("HostInfo", type, hostInfo, true); if (mbeanServer != null) { registerComponent("MBeanServer", MBeanServer.class, mbeanServer, false); registerComponent("ManagementService", ManagementService.class, managementService, true); registerComponent("ComponentManager", ComponentManager.class, componentManager, true); registerComponent("ChannelManager", ChannelManager.class, channelManager, true); registerComponent("RuntimeLogicalComponentManager", LogicalComponentManager.class, lcm, true); registerComponent("CompositeScopeContainer", ScopeContainer.class, scopeContainer, true); registerComponent("ClassLoaderRegistry", ClassLoaderRegistry.class, classLoaderRegistry, true); registerComponent("ScopeRegistry", ScopeRegistry.class, scopeRegistry, true); registerComponent("MetaDataStore", MetaDataStore.class, metaDataStore, true); registerComponent("Monitorable", Monitorable.class, runtime, false); I instance = (I) registration.getInstance(); boolean introspect = registration.isIntrospect(); registerComponent(name, service, instance, introspect);
/** * Creates contributions for the host and boot classloaders. These contributions may be imported by extensions and user contributions. * * @throws Fabric3Exception if there is an error synthesizing the contributions */ private void synthesizeContributions() throws Fabric3Exception { // export packages included in JDK 6 synthesizeContribution(HOST_CONTRIBUTION, Java6HostExports.getExports(), hostCapabilities, hostClassLoader, true); // add default boot exports exportedPackages.putAll(BootExports.getExports()); bootContribution = synthesizeContribution(BOOT_CONTRIBUTION, exportedPackages, Collections.<String>emptyList(), bootClassLoader, true); }
registerRuntimeComponents(registrations); registerComponent("RuntimeDomain", Domain.class, runtimeDomain, true); synthesizeContributions();
public void boot() throws Fabric3Exception { runtime.boot(); Bootstrapper bootstrapper = new DefaultBootstrapper(configuration); // boot runtime domain bootstrapper.bootRuntimeDomain(); // initialize core system components bootstrapper.bootSystem(); }
registerRuntimeComponents(registrations); registerComponent("RuntimeDomain", Domain.class, runtimeDomain, true); synthesizeContributions();
public void boot() throws Fabric3Exception { runtime.boot(); Bootstrapper bootstrapper = new DefaultBootstrapper(configuration); // boot runtime domain bootstrapper.bootRuntimeDomain(); // initialize core system components bootstrapper.bootSystem(); }
registerRuntimeComponents(registrations); registerComponent("RuntimeDomain", Domain.class, runtimeDomain, true); synthesizeContributions();
registerComponent("MonitorProxyService", MonitorProxyService.class, monitorService, true); registerComponent("DestinationRouter", DestinationRouter.class, router, true); Class<HostInfo> type = getHostInfoType(hostInfo); registerComponent("HostInfo", type, hostInfo, true); if (mbeanServer != null) { registerComponent("MBeanServer", MBeanServer.class, mbeanServer, false); registerComponent("ManagementService", ManagementService.class, managementService, true); registerComponent("ComponentManager", ComponentManager.class, componentManager, true); registerComponent("ChannelManager", ChannelManager.class, channelManager, true); registerComponent("RuntimeLogicalComponentManager", LogicalComponentManager.class, lcm, true); registerComponent("CompositeScopeContainer", ScopeContainer.class, scopeContainer, true); registerComponent("ClassLoaderRegistry", ClassLoaderRegistry.class, classLoaderRegistry, true); registerComponent("ScopeRegistry", ScopeRegistry.class, scopeRegistry, true); registerComponent("MetaDataStore", MetaDataStore.class, metaDataStore, true); registerComponent("Repository", Repository.class, repository, true); registerComponent("Monitorable", Monitorable.class, runtime, false); I instance = (I) registration.getInstance(); boolean introspect = registration.isIntrospect(); registerComponent(name, service, instance, introspect);
/** * Creates contributions for the host and boot classloaders. These contributions may be imported by extensions and user contributions. * * @throws Fabric3Exception if there is an error synthesizing the contributions */ private void synthesizeContributions() throws Fabric3Exception { // export packages included in JDK 6 synthesizeContribution(HOST_CONTRIBUTION, Java6HostExports.getExports(), hostCapabilities, hostClassLoader, true); // add default boot exports exportedPackages.putAll(BootExports.getExports()); bootContribution = synthesizeContribution(BOOT_CONTRIBUTION, exportedPackages, Collections.<String>emptyList(), bootClassLoader, true); }
public void prepare() throws InitializationException { // boot primordial services runtime.boot(); Bootstrapper bootstrapper = new DefaultBootstrapper(configuration); // boot runtime domain bootstrapper.bootRuntimeDomain(); // initialize core system components bootstrapper.bootSystem(); // load and initialize runtime extension components and the local runtime domain loadExtensions(); EventService eventService = runtime.getComponent(EventService.class); eventService.publish(new ExtensionsInitialized()); // initiate local runtime recovery recover(eventService); }
registerComponent("MonitorProxyService", MonitorProxyService.class, monitorService, true); registerComponent("DestinationRouter", DestinationRouter.class, router, true); Class<HostInfo> type = getHostInfoType(hostInfo); registerComponent("HostInfo", type, hostInfo, true); if (mbeanServer != null) { registerComponent("MBeanServer", MBeanServer.class, mbeanServer, false); registerComponent("ManagementService", ManagementService.class, managementService, true); registerComponent("ComponentManager", ComponentManager.class, componentManager, true); registerComponent("ChannelManager", ChannelManager.class, channelManager, true); registerComponent("RuntimeLogicalComponentManager", LogicalComponentManager.class, lcm, true); registerComponent("CompositeScopeContainer", ScopeContainer.class, scopeContainer, true); registerComponent("ClassLoaderRegistry", ClassLoaderRegistry.class, classLoaderRegistry, true); registerComponent("ScopeRegistry", ScopeRegistry.class, scopeRegistry, true); registerComponent("MetaDataStore", MetaDataStore.class, metaDataStore, true); registerComponent("Monitorable", Monitorable.class, runtime, false); I instance = (I) registration.getInstance(); boolean introspect = registration.isIntrospect(); registerComponent(name, service, instance, introspect);
/** * Creates contributions for the host and boot classloaders. These contributions may be imported by extensions and user contributions. * * @throws InitializationException if there is an error synthesizing the contributions */ private void synthesizeContributions() throws InitializationException { try { // export packages included in JDK 6 synthesizeContribution(HOST_CONTRIBUTION, Java6HostExports.getExports(), hostCapabilities, hostClassLoader, true); // add default boot exports exportedPackages.putAll(BootExports.getExports()); bootContribution = synthesizeContribution(BOOT_CONTRIBUTION, exportedPackages, Collections.<String>emptyList(), bootClassLoader, true); } catch (ContributionException e) { throw new InitializationException(e); } }