com.sun.star.comp.helper
Class Bootstrap
Bootstrap offers functionality to obtain a context or simply
a service manager.
The service manager can create a few basic services, whose implementations are:
- com.sun.star.comp.loader.JavaLoader
- com.sun.star.comp.urlresolver.UrlResolver
- com.sun.star.comp.bridgefactory.BridgeFactory
- com.sun.star.comp.connections.Connector
- com.sun.star.comp.connections.Acceptor
- com.sun.star.comp.servicemanager.ServiceManager
Other services can be inserted into the service manager by
using its XSet interface:
XSet xSet = (XSet)UnoRuntime.queryInterface( XSet.class, aMultiComponentFactory );
// insert the service manager
xSet.insert( aSingleComponentFactory );
bootstrap
public static final XComponentContext bootstrap()
throws BootstrapException
Bootstraps the component context from a UNO installation.
- a bootstrapped component context.
createInitialComponentContext
public static XComponentContext createInitialComponentContext(Hashtable context_entries)
throws Exception
Bootstraps an initial component context with service manager and basic
jurt components inserted.
context_entries
- the hash table contains mappings of entry names (type string) to
context entries (type class ComponentContextEntry).
createSimpleServiceManager
public static XMultiServiceFactory createSimpleServiceManager()
throws Exception
Bootstraps a servicemanager with the jurt base components registered.
- a freshly boostrapped service manager
defaultBootstrap_InitialComponentContext
public static final XComponentContext defaultBootstrap_InitialComponentContext()
throws Exception
Bootstraps the initial component context from a native UNO installation.
cppuhelper/defaultBootstrap_InitialComponentContext()
defaultBootstrap_InitialComponentContext
public static final XComponentContext defaultBootstrap_InitialComponentContext(String ini_file,
Hashtable bootstrap_parameters)
throws Exception
Bootstraps the initial component context from a native UNO installation.
ini_file
- ini_file (may be null: uno.rc besides cppuhelper lib)bootstrap_parameters
- bootstrap parameters (maybe null)
cppuhelper/defaultBootstrap_InitialComponentContext()