public class Bootstrap extends Object
XSet xSet = UnoRuntime.queryInterface( XSet.class, aMultiComponentFactory ); // insert the service manager xSet.insert( aSingleComponentFactory );
Constructor | Description |
---|---|
Bootstrap() |
Modifier and Type | Method | Description |
---|---|---|
static com.sun.star.uno.XComponentContext |
bootstrap() |
Bootstraps the component context from a UNO installation.
|
static com.sun.star.uno.XComponentContext |
bootstrap(String[] argArray) |
Bootstraps the component context from a UNO installation.
|
static com.sun.star.uno.XComponentContext |
createInitialComponentContext(Hashtable<String,Object> context_entries) |
backwards compatibility stub.
|
static com.sun.star.uno.XComponentContext |
createInitialComponentContext(Map<String,Object> context_entries) |
Bootstraps an initial component context with service manager and basic
jurt components inserted.
|
static com.sun.star.lang.XMultiServiceFactory |
createSimpleServiceManager() |
Bootstraps a servicemanager with the jurt base components registered.
|
static com.sun.star.uno.XComponentContext |
defaultBootstrap_InitialComponentContext() |
Bootstraps the initial component context from a native UNO installation.
|
static com.sun.star.uno.XComponentContext |
defaultBootstrap_InitialComponentContext(String ini_file,
Hashtable<String,String> bootstrap_parameters) |
Backwards compatibility stub.
|
static com.sun.star.uno.XComponentContext |
defaultBootstrap_InitialComponentContext(String ini_file,
Map<String,String> bootstrap_parameters) |
Bootstraps the initial component context from a native UNO installation.
|
static String[] |
getDefaultOptions() |
Returns an array of default commandline options to start bootstrapped
instance of soffice with.
|
public static final String[] getDefaultOptions()
List list = Arrays.asList( Bootstrap.getDefaultOptions() ); list.remove("--nologo"); list.remove("--nodefault"); list.add("--invisible"); Bootstrap.bootstrap( list.toArray( new String[list.size()] );
bootstrap( String[] )
public static com.sun.star.uno.XComponentContext createInitialComponentContext(Hashtable<String,Object> context_entries) throws Exception
context_entries
- the hash table contains mappings of entry names (type string) to
context entries (type class ComponentContextEntry).Exception
- if things go awry.public static com.sun.star.uno.XComponentContext createInitialComponentContext(Map<String,Object> context_entries) throws Exception
context_entries
- the hash table contains mappings of entry names (type string) to
context entries (type class ComponentContextEntry).Exception
- if things go awry.public static com.sun.star.lang.XMultiServiceFactory createSimpleServiceManager() throws Exception
com.sun.star.lang.ServiceManager
.Exception
- if things go awry.public static final com.sun.star.uno.XComponentContext defaultBootstrap_InitialComponentContext() throws Exception
cppuhelper/defaultBootstrap_InitialComponentContext()
.Exception
- if things go awry.public static final com.sun.star.uno.XComponentContext defaultBootstrap_InitialComponentContext(String ini_file, Hashtable<String,String> bootstrap_parameters) throws Exception
ini_file
- ini_file (may be null: uno.rc besides cppuhelper lib)bootstrap_parameters
- bootstrap parameters (maybe null)Exception
- if things go awry.public static final com.sun.star.uno.XComponentContext defaultBootstrap_InitialComponentContext(String ini_file, Map<String,String> bootstrap_parameters) throws Exception
cppuhelper/defaultBootstrap_InitialComponentContext()
.ini_file
- ini_file (may be null: uno.rc besides cppuhelper lib)bootstrap_parameters
- bootstrap parameters (maybe null)Exception
- if things go awry.public static final com.sun.star.uno.XComponentContext bootstrap() throws BootstrapException
BootstrapException
- if things go awry.public static final com.sun.star.uno.XComponentContext bootstrap(String[] argArray) throws BootstrapException
argArray
- an array of strings - commandline options to start instance of
soffice withBootstrapException
- if things go awry.getDefaultOptions()