protected static class FactoryHelper.Factory
extends java.lang.Object
implements com.sun.star.lang.XSingleServiceFactory, com.sun.star.lang.XSingleComponentFactory, com.sun.star.lang.XServiceInfo, com.sun.star.lang.XTypeProvider
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.reflect.Constructor<?> |
_constructor |
protected java.lang.String |
_implName |
protected int |
_nCode |
protected java.lang.String |
_serviceName |
protected com.sun.star.lang.XMultiServiceFactory |
_xMultiServiceFactory |
protected com.sun.star.registry.XRegistryKey |
_xRegistryKey |
| Modifier | Constructor and Description |
|---|---|
protected |
Factory(java.lang.Class<?> implClass,
java.lang.String serviceName,
com.sun.star.lang.XMultiServiceFactory xMultiServiceFactory,
com.sun.star.registry.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,
com.sun.star.uno.XComponentContext xContext) |
java.lang.Object |
createInstanceWithContext(com.sun.star.uno.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 com.sun.star.lang.XMultiServiceFactory _xMultiServiceFactory
protected com.sun.star.registry.XRegistryKey _xRegistryKey
protected int _nCode
protected java.lang.reflect.Constructor<?> _constructor
protected java.lang.String _implName
protected java.lang.String _serviceName
protected Factory(java.lang.Class<?> implClass,
java.lang.String serviceName,
com.sun.star.lang.XMultiServiceFactory xMultiServiceFactory,
com.sun.star.registry.XRegistryKey xRegistryKey)
public java.lang.Object createInstanceWithContext(com.sun.star.uno.XComponentContext xContext)
throws com.sun.star.uno.Exception
createInstanceWithContext in interface com.sun.star.lang.XSingleComponentFactorycom.sun.star.uno.Exceptionpublic java.lang.Object createInstanceWithArgumentsAndContext(java.lang.Object[] rArguments,
com.sun.star.uno.XComponentContext xContext)
throws com.sun.star.uno.Exception
createInstanceWithArgumentsAndContext in interface com.sun.star.lang.XSingleComponentFactorycom.sun.star.uno.Exceptionpublic java.lang.Object createInstance()
throws com.sun.star.uno.Exception,
com.sun.star.uno.RuntimeException
createInstance in interface com.sun.star.lang.XSingleServiceFactorycom.sun.star.uno.Exceptioncom.sun.star.uno.RuntimeExceptionXSingleServiceFactorypublic java.lang.Object createInstanceWithArguments(java.lang.Object[] args)
throws com.sun.star.uno.Exception,
com.sun.star.uno.RuntimeException
createInstanceWithArguments in interface com.sun.star.lang.XSingleServiceFactoryargs - the args given to the constructor of the service.com.sun.star.uno.Exceptioncom.sun.star.uno.RuntimeExceptionXSingleServiceFactorypublic java.lang.String[] getSupportedServiceNames()
throws com.sun.star.uno.RuntimeException
getSupportedServiceNames in interface com.sun.star.lang.XServiceInfocom.sun.star.uno.RuntimeExceptionXServiceInfopublic java.lang.String getImplementationName()
throws com.sun.star.uno.RuntimeException
getImplementationName in interface com.sun.star.lang.XServiceInfocom.sun.star.uno.RuntimeExceptionXServiceInfopublic boolean supportsService(java.lang.String serviceName)
throws com.sun.star.uno.RuntimeException
supportsService in interface com.sun.star.lang.XServiceInfocom.sun.star.uno.RuntimeExceptionXServiceInfopublic byte[] getImplementationId()
getImplementationId in interface com.sun.star.lang.XTypeProviderpublic com.sun.star.uno.Type[] getTypes()
getTypes in interface com.sun.star.lang.XTypeProvider