Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15
OOoRunner test harness

helper
Class UnoProvider

java.lang.Object
  |
  +--helper.UnoProvider
All Implemented Interfaces:
AppProvider

public class UnoProvider
extends Object
implements AppProvider

Bootstrap UNO from a Java environment. Needed parameters:

    • UNORC - complete path to the unorc file
    • AppExecutionCommand - path to the soffice executable
    • OS - the operating system in case it's Windows, because the unorc is called uno.ini


Constructor Summary
UnoProvider()
           
 
Method Summary
 boolean closeExistingOffice(TestParameters param, boolean closeIfPossible)
          Close existing office: calls disposeManager()
 boolean disposeManager(TestParameters param)
          Dispose the UNO environment: just clears the bootstrapped MultiServiceFactory
 Object getManager(TestParameters param)
          Bootstrap UNO and return the created MultiServiceFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnoProvider

public UnoProvider()
Method Detail

closeExistingOffice

public boolean closeExistingOffice(TestParameters param,
                                   boolean closeIfPossible)
Close existing office: calls disposeManager()
Specified by:
closeExistingOffice in interface AppProvider
Parameters:
param - The test parameters.
closeIfPossible - Not needed, since UNO is bootstrapped by this class in every case.
Returns:
True, if bootstrapping worked.

disposeManager

public boolean disposeManager(TestParameters param)
Dispose the UNO environment: just clears the bootstrapped MultiServiceFactory
Specified by:
disposeManager in interface AppProvider
Parameters:
param - The test parameters.
Returns:
True, if bootstrapping worked.

getManager

public Object getManager(TestParameters param)
Bootstrap UNO and return the created MultiServiceFactory.
Specified by:
getManager in interface AppProvider
Parameters:
param - The test parameters.
Returns:
A created MultiServiceFactory.

OOoRunner test harness

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.