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:


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