|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.init.service.UnoServiceManager
public class UnoServiceManager
Wrapper class for UNO services and interfaces
Method Summary | ||
---|---|---|
java.lang.Object |
getService(java.lang.String serviceName)
Queries the XComponentContext for a given service
The XMultiServiceFactory from XComponentContext.getServiceManager() will be used to
create new services |
|
java.lang.Object |
getService(java.lang.String serviceName,
com.sun.star.lang.XMultiServiceFactory serviceFactory)
|
|
static UnoServiceManager |
getServiceManager(com.sun.star.uno.XComponentContext... context)
Obtains a singleton instance of a UnoServiceManager using the context |
|
|
query(java.lang.Class<T> clazz,
java.lang.Object context)
Queries the UnoRuntime for provided Interface on provided context |
|
|
queryWithDefaultContext(java.lang.Class<T> clazz)
Queries the UnoRuntime for provided Interface on standard
XComponentContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static UnoServiceManager getServiceManager(com.sun.star.uno.XComponentContext... context)
context
-
public final <T extends com.sun.star.uno.XInterface> T queryWithDefaultContext(java.lang.Class<T> clazz)
UnoRuntime
for provided Interface on standard
XComponentContext
clazz
- the XInterface
to query the standard XComponentContext
for
XInterface
public final <T extends com.sun.star.uno.XInterface> T query(java.lang.Class<T> clazz, java.lang.Object context)
UnoRuntime
for provided Interface on provided context
clazz
- the XInterface
to query the standard XComponentContext
forcontext
- a context to query the runtime for interfaces
XInterface
public final java.lang.Object getService(java.lang.String serviceName) throws java.lang.Exception
XComponentContext
for a given service
The XMultiServiceFactory
from XComponentContext.getServiceManager()
will be used to
create new services
serviceName
-
java.lang.Exception
public final java.lang.Object getService(java.lang.String serviceName, com.sun.star.lang.XMultiServiceFactory serviceFactory) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |