Bootstrap.java (a5b190bf) Bootstrap.java (2f57578e)
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

--- 83 unchanged lines hidden (view full) ---

92 "com.sun.star.comp.connections.Acceptor", null, null, null ) );
93 }
94
95 /** Bootstraps an initial component context with service manager and basic
96 jurt components inserted.
97 @param context_entries the hash table contains mappings of entry names (type string) to
98 context entries (type class ComponentContextEntry).
99 @return a new context.
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

--- 83 unchanged lines hidden (view full) ---

92 "com.sun.star.comp.connections.Acceptor", null, null, null ) );
93 }
94
95 /** Bootstraps an initial component context with service manager and basic
96 jurt components inserted.
97 @param context_entries the hash table contains mappings of entry names (type string) to
98 context entries (type class ComponentContextEntry).
99 @return a new context.
100 @throws java.lang.Exception
100 */
101 static public XComponentContext createInitialComponentContext( Hashtable context_entries )
102 throws Exception
103 {
104 XImplementationLoader xImpLoader = UnoRuntime.queryInterface(
105 XImplementationLoader.class, new JavaLoader() );
106
107 // Get the factory of the ServiceManager

--- 36 unchanged lines hidden (view full) ---

144 return xContext;
145 }
146
147 /**
148 * Bootstraps a servicemanager with the jurt base components registered.
149 * <p>
150 * @return a freshly boostrapped service manager
151 * @see com.sun.star.lang.ServiceManager
101 */
102 static public XComponentContext createInitialComponentContext( Hashtable context_entries )
103 throws Exception
104 {
105 XImplementationLoader xImpLoader = UnoRuntime.queryInterface(
106 XImplementationLoader.class, new JavaLoader() );
107
108 // Get the factory of the ServiceManager

--- 36 unchanged lines hidden (view full) ---

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
153 * @throws java.lang.Exception
152 */
153 static public XMultiServiceFactory createSimpleServiceManager() throws Exception
154 {
155 return UnoRuntime.queryInterface(
156 XMultiServiceFactory.class, createInitialComponentContext( null ).getServiceManager() );
157 }
158
159
154 */
155 static public XMultiServiceFactory createSimpleServiceManager() throws Exception
156 {
157 return UnoRuntime.queryInterface(
158 XMultiServiceFactory.class, createInitialComponentContext( null ).getServiceManager() );
159 }
160
161
160 /** Bootstraps the initial component context from a native UNO installation.
161
162 @see cppuhelper/defaultBootstrap_InitialComponentContext()
163 */
162 /**
163 * Bootstraps the initial component context from a native UNO installation.
164 * <p>
165 * @return
166 * @see cppuhelper/defaultBootstrap_InitialComponentContext()
167 */
164 static public final XComponentContext defaultBootstrap_InitialComponentContext()
165 throws Exception
166 {
167 return defaultBootstrap_InitialComponentContext( null, null );
168 }
169 /** Bootstraps the initial component context from a native UNO installation.
170
171 @param ini_file

--- 154 unchanged lines hidden ---
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

--- 154 unchanged lines hidden ---