com.sun.star.tools.uno

Class UnoApp


public class UnoApp
extends Applet

A command line tool. UnoApp is the generic UNO application for java. It removes the need for writing UNO applications in Java. That is, it instantiates a service and runs it if it implements com.sun.star.lang.XMain.
In a remote scenario it is used to intantiate services and makes them accessible via a network.
See Also:
The Java Uno Application

Field Summary

static boolean
DEBUG

Method Summary

static XMultiServiceFactory
createSimpleServiceManager()
Bootstraps a servicemanager with some base components registered.
void
destroy()
static void
export(XMultiServiceFactory xMultiServiceFactory, String dcp, Object object, boolean singleAccept)
Exports the given object via the given url while using the xMultiServiceFactory.
void
init()
Calls the main method.
static void
main(args[] )
The is the main method, which is called from java.
void
start()
void
stop()

Field Details

DEBUG

public static final boolean DEBUG
Field Value:
false

Method Details

createSimpleServiceManager

public static XMultiServiceFactory createSimpleServiceManager()
            throws Exception
Bootstraps a servicemanager with some base components registered.

Returns:
a freshly boostrapped service manager

destroy

public void destroy()

export

public static void export(XMultiServiceFactory xMultiServiceFactory,
                          String dcp,
                          Object object,
                          boolean singleAccept)
            throws Exception
Exports the given object via the given url while using the xMultiServiceFactory.

Parameters:
xMultiServiceFactory - the service manager to use
dcp - a uno url, which describes how to export
object - the object to export

init

public void init()
Calls the main method. The parameter of the applet are passed as arguments to the main method.

main

public static void main(args[] )
            throws Exception
The is the main method, which is called from java.

start

public void start()

stop

public void stop()