Bootstrap.java (2f57578e) | Bootstrap.java (c86fe57e) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 135 unchanged lines hidden (view full) --- 144 145 return xContext; 146 } 147 148 /** 149 * Bootstraps a servicemanager with the jurt base components registered. 150 * <p> 151 * @return a freshly boostrapped service manager | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 135 unchanged lines hidden (view full) --- 144 145 return xContext; 146 } 147 148 /** 149 * Bootstraps a servicemanager with the jurt base components registered. 150 * <p> 151 * @return a freshly boostrapped service manager |
152 * @see com.sun.star.lang.ServiceManager | 152 * @see "com.sun.star.lang.ServiceManager" |
153 * @throws java.lang.Exception 154 */ 155 static public XMultiServiceFactory createSimpleServiceManager() throws Exception 156 { 157 return UnoRuntime.queryInterface( 158 XMultiServiceFactory.class, createInitialComponentContext( null ).getServiceManager() ); 159 } 160 161 162 /** 163 * Bootstraps the initial component context from a native UNO installation. 164 * <p> 165 * @return | 153 * @throws java.lang.Exception 154 */ 155 static public XMultiServiceFactory createSimpleServiceManager() throws Exception 156 { 157 return UnoRuntime.queryInterface( 158 XMultiServiceFactory.class, createInitialComponentContext( null ).getServiceManager() ); 159 } 160 161 162 /** 163 * Bootstraps the initial component context from a native UNO installation. 164 * <p> 165 * @return |
166 * @see cppuhelper/defaultBootstrap_InitialComponentContext() | 166 * @see defaultBootstrap_InitialComponentContext() |
167 */ 168 static public final XComponentContext defaultBootstrap_InitialComponentContext() 169 throws Exception 170 { 171 return defaultBootstrap_InitialComponentContext( null, null ); 172 } 173 /** Bootstraps the initial component context from a native UNO installation. 174 175 @param ini_file 176 ini_file (may be null: uno.rc besides cppuhelper lib) 177 @param bootstrap_parameters 178 bootstrap parameters (maybe null) 179 | 167 */ 168 static public final XComponentContext defaultBootstrap_InitialComponentContext() 169 throws Exception 170 { 171 return defaultBootstrap_InitialComponentContext( null, null ); 172 } 173 /** Bootstraps the initial component context from a native UNO installation. 174 175 @param ini_file 176 ini_file (may be null: uno.rc besides cppuhelper lib) 177 @param bootstrap_parameters 178 bootstrap parameters (maybe null) 179 |
180 @see cppuhelper/defaultBootstrap_InitialComponentContext() | 180 @see defaultBootstrap_InitialComponentContext() |
181 */ 182 static public final XComponentContext defaultBootstrap_InitialComponentContext( 183 String ini_file, Hashtable bootstrap_parameters ) 184 throws Exception 185 { 186 // jni convenience: easier to iterate over array than calling Hashtable 187 String pairs [] = null; 188 if (null != bootstrap_parameters) --- 141 unchanged lines hidden --- | 181 */ 182 static public final XComponentContext defaultBootstrap_InitialComponentContext( 183 String ini_file, Hashtable bootstrap_parameters ) 184 throws Exception 185 { 186 // jni convenience: easier to iterate over array than calling Hashtable 187 String pairs [] = null; 188 if (null != bootstrap_parameters) --- 141 unchanged lines hidden --- |