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
|
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.Exception
public java.lang.Object createInstanceWithArgumentsAndContext(java.lang.Object[] rArguments, XComponentContext xContext) throws com.sun.star.uno.Exception
com.sun.star.uno.Exception
public java.lang.Object createInstance() throws com.sun.star.uno.Exception, com.sun.star.uno.RuntimeException
com.sun.star.uno.Exception
com.sun.star.uno.RuntimeException
com.sun.star.lang.XSingleServiceFactory
public 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.Exception
com.sun.star.uno.RuntimeException
com.sun.star.lang.XSingleServiceFactory
public java.lang.String[] getSupportedServiceNames() throws com.sun.star.uno.RuntimeException
com.sun.star.uno.RuntimeException
com.sun.star.lang.XServiceInfo
public java.lang.String getImplementationName() throws com.sun.star.uno.RuntimeException
com.sun.star.uno.RuntimeException
com.sun.star.lang.XServiceInfo
public boolean supportsService(java.lang.String serviceName) throws com.sun.star.uno.RuntimeException
com.sun.star.uno.RuntimeException
com.sun.star.lang.XServiceInfo
public byte[] getImplementationId()
public Type[] getTypes()