com.sun.star.tools.uno
Class UnoApp
Applet
com.sun.star.tools.uno.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.
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()
|
DEBUG
public static final boolean DEBUG
createSimpleServiceManager
public static XMultiServiceFactory createSimpleServiceManager()
throws Exception
Bootstraps a servicemanager with some base components registered.
- 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
.
xMultiServiceFactory
- the service manager to usedcp
- a uno url, which describes how to exportobject
- 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.