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 booleanDEBUG
Method Summary
static XMultiServiceFactorycreateSimpleServiceManager()
Bootstraps a servicemanager with some base components registered.
voiddestroy()
static voidexport(XMultiServiceFactory xMultiServiceFactory, String dcp, Object object, boolean singleAccept)
Exports the given object via the given url while using the xMultiServiceFactory.
voidinit()
Calls the main method.
static voidmain(String[] args)
The is the main method, which is called from java.
voidstart()
voidstop()

Field Detail

DEBUG

public static final boolean DEBUG

Method Detail

createSimpleServiceManager

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

Returns: a freshly boostrapped service manager

See Also: com.sun.star.lang.ServiceManager

destroy

public void destroy()

export

public static void export(XMultiServiceFactory xMultiServiceFactory, String dcp, Object object, boolean singleAccept)
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

See Also: com.sun.star.bridge.XBridge com.sun.star.bridge.XBridgeFactory com.sun.star.bridge.XInstanceProvider

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(String[] args)
The is the main method, which is called from java.

start

public void start()

stop

public void stop()