protected static class FactoryHelper.Factory
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.Class |
__objectArray |
protected java.lang.reflect.Constructor |
_constructor |
protected java.lang.String |
_implName |
protected static java.lang.Object |
_mutex |
protected int |
_nCode |
protected java.lang.String |
_serviceName |
protected XMultiServiceFactory |
_xMultiServiceFactory |
protected XRegistryKey |
_xRegistryKey |
| Modifier | Constructor and Description |
|---|---|
protected |
Factory(java.lang.Class implClass,
java.lang.String serviceName,
XMultiServiceFactory xMultiServiceFactory,
XRegistryKey xRegistryKey) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
createInstance()
Creates an instance of the desired service.
|
java.lang.Object |
createInstanceWithArguments(java.lang.Object[] args)
Creates an instance of the desired service.
|
java.lang.Object |
createInstanceWithArgumentsAndContext(java.lang.Object[] rArguments,
XComponentContext xContext) |
java.lang.Object |
createInstanceWithContext(XComponentContext xContext) |
byte[] |
getImplementationId() |
java.lang.String |
getImplementationName()
Gives the implementation name
|
java.lang.String[] |
getSupportedServiceNames()
Gives the supported services
|
com.sun.star.uno.Type[] |
getTypes() |
boolean |
supportsService(java.lang.String serviceName)
Indicates if the given service is supported.
|
protected static java.lang.Class __objectArray
protected XMultiServiceFactory _xMultiServiceFactory
protected XRegistryKey _xRegistryKey
protected int _nCode
protected java.lang.reflect.Constructor _constructor
protected java.lang.String _implName
protected java.lang.String _serviceName
protected static java.lang.Object _mutex
protected Factory(java.lang.Class implClass,
java.lang.String serviceName,
XMultiServiceFactory xMultiServiceFactory,
XRegistryKey xRegistryKey)
public java.lang.Object createInstanceWithContext(XComponentContext xContext)
throws com.sun.star.uno.Exception
com.sun.star.uno.Exceptionpublic java.lang.Object createInstanceWithArgumentsAndContext(java.lang.Object[] rArguments,
XComponentContext xContext)
throws com.sun.star.uno.Exception
com.sun.star.uno.Exceptionpublic java.lang.Object createInstance()
throws com.sun.star.uno.Exception,
com.sun.star.uno.RuntimeException
com.sun.star.uno.Exceptioncom.sun.star.uno.RuntimeExceptioncom.sun.star.lang.XSingleServiceFactorypublic java.lang.Object createInstanceWithArguments(java.lang.Object[] args)
throws com.sun.star.uno.Exception,
com.sun.star.uno.RuntimeException
args - the args given to the constructor of the servicecom.sun.star.uno.Exceptioncom.sun.star.uno.RuntimeExceptioncom.sun.star.lang.XSingleServiceFactorypublic java.lang.String[] getSupportedServiceNames()
throws com.sun.star.uno.RuntimeException
com.sun.star.uno.RuntimeExceptioncom.sun.star.lang.XServiceInfopublic java.lang.String getImplementationName()
throws com.sun.star.uno.RuntimeException
com.sun.star.uno.RuntimeExceptioncom.sun.star.lang.XServiceInfopublic boolean supportsService(java.lang.String serviceName)
throws com.sun.star.uno.RuntimeException
com.sun.star.uno.RuntimeExceptioncom.sun.star.lang.XServiceInfopublic byte[] getImplementationId()
public com.sun.star.uno.Type[] getTypes()