(incubating) | The Free and Open Productivity Suite
UNO Java Runtime

com.sun.star.comp.helper
Class Bootstrap

java.lang.Object
  |
  +--com.sun.star.comp.helper.Bootstrap

public class Bootstrap
extends java.lang.Object

Bootstrap offers functionality to obtain a context or simply a service manager. The service manager can create a few basic services, whose implementations are:

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 );
         


Constructor Summary
Bootstrap()
           
 
Method Summary
static XComponentContext createInitialComponentContext(java.util.Hashtable 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bootstrap

public Bootstrap()
Method Detail

createInitialComponentContext

public static XComponentContext createInitialComponentContext(java.util.Hashtable context_entries)
                                                       throws java.lang.Exception
Bootstraps an initial component context with service manager and basic jurt components inserted.

Parameters:
context_entries - the hash table contains mappings of entry names (type string) to context entries (type class ComponentContextEntry).
Returns:
a new context.
java.lang.Exception

createSimpleServiceManager

public static com.sun.star.lang.XMultiServiceFactory createSimpleServiceManager()
                                                                         throws java.lang.Exception
Bootstraps a servicemanager with the jurt base components registered.

Returns:
a freshly boostrapped service manager
java.lang.Exception
Since:
UDK2.08
See Also:
com.sun.star.lang.ServiceManager

UNO Java Runtime

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.