protected static class FactoryHelper.Factory extends 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 Constructor<?> |
_constructor |
protected String |
_implName |
protected int |
_nCode |
protected String |
_serviceName |
protected com.sun.star.lang.XMultiServiceFactory |
_xMultiServiceFactory |
protected com.sun.star.registry.XRegistryKey |
_xRegistryKey |
| Modifier | Constructor and Description |
|---|---|
protected |
Factory(Class<?> implClass,
String serviceName,
com.sun.star.lang.XMultiServiceFactory xMultiServiceFactory,
com.sun.star.registry.XRegistryKey xRegistryKey) |
| Modifier and Type | Method and Description |
|---|---|
Object |
createInstance()
Creates an instance of the desired service.
|
Object |
createInstanceWithArguments(Object[] args)
Creates an instance of the desired service.
|
Object |
createInstanceWithArgumentsAndContext(Object[] rArguments,
com.sun.star.uno.XComponentContext xContext) |
Object |
createInstanceWithContext(com.sun.star.uno.XComponentContext xContext) |
byte[] |
getImplementationId() |
String |
getImplementationName()
Gives the implementation name.
|
String[] |
getSupportedServiceNames()
Gives the supported services.
|
com.sun.star.uno.Type[] |
getTypes() |
boolean |
supportsService(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 Constructor<?> _constructor
protected String _implName
protected String _serviceName
public 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 Object createInstanceWithArgumentsAndContext(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 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 Object createInstanceWithArguments(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 String[] getSupportedServiceNames() throws com.sun.star.uno.RuntimeException
getSupportedServiceNames in interface com.sun.star.lang.XServiceInfocom.sun.star.uno.RuntimeExceptionXServiceInfopublic String getImplementationName() throws com.sun.star.uno.RuntimeException
getImplementationName in interface com.sun.star.lang.XServiceInfocom.sun.star.uno.RuntimeExceptionXServiceInfopublic boolean supportsService(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