public class HK2Main extends Main implements org.osgi.framework.BundleActivator, org.osgi.framework.SynchronousBundleListener
BundleActivator that launches a Habitat.
A habitat is a collection of inhabitants, which are configured in a certain way.
So, there is a one-to-one mapping between habitat and configuration file used to configure the inhabitants.| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
DEFAULT_NAME |
| Constructor and Description |
|---|
HK2Main() |
| Modifier and Type | Method and Description |
|---|---|
void |
bundleChanged(org.osgi.framework.BundleEvent event) |
protected ModulesRegistry |
createModulesRegistry() |
ServiceLocator |
createServiceLocator(ModulesRegistry mr,
StartupContext context,
java.util.List<PopulatorPostProcessor> postProcessors,
DescriptorFileFinder descriptorFileFinder) |
protected void |
defineParentClassLoader() |
void |
start(org.osgi.framework.BundleContext context) |
void |
stop(org.osgi.framework.BundleContext context) |
findStartupService, getBootstrapFile, getParentClassLoader, getServiceLocator, launch, launch, main, run, startpublic final java.lang.String DEFAULT_NAME
public ServiceLocator createServiceLocator(ModulesRegistry mr, StartupContext context, java.util.List<PopulatorPostProcessor> postProcessors, DescriptorFileFinder descriptorFileFinder) throws BootException
createServiceLocator in class MainBootExceptionpublic void start(org.osgi.framework.BundleContext context)
throws java.lang.Exception
start in interface org.osgi.framework.BundleActivatorjava.lang.Exceptionprotected ModulesRegistry createModulesRegistry() throws java.lang.Exception
java.lang.Exceptionprotected void defineParentClassLoader()
throws BootException
defineParentClassLoader in class MainBootExceptionpublic void stop(org.osgi.framework.BundleContext context)
throws java.lang.Exception
stop in interface org.osgi.framework.BundleActivatorjava.lang.Exceptionpublic void bundleChanged(org.osgi.framework.BundleEvent event)
bundleChanged in interface org.osgi.framework.BundleListenerCopyright © 2013 Oracle Corporation. All Rights Reserved.