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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnoProvider
public UnoProvider()
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.