public class FactoryHelper extends Object
This class has default implementations for getServiceFactory
and writeRegistryServiceInfo.
XMultiServiceFactory,
XServiceInfo,
XSingleServiceFactory,
XRegistryKey| Modifier and Type | Class and Description |
|---|---|
protected static class |
FactoryHelper.Factory |
| Constructor and Description |
|---|
FactoryHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
createComponentFactory(Class<?> implClass,
String serviceName)
Creates a factory for the given class.
|
static com.sun.star.lang.XSingleServiceFactory |
getServiceFactory(Class<?> implClass,
String serviceName,
com.sun.star.lang.XMultiServiceFactory multiFactory,
com.sun.star.registry.XRegistryKey regKey)
Creates a factory for the given class.
|
static com.sun.star.lang.XSingleServiceFactory |
getServiceFactory(Class<?> implClass,
com.sun.star.lang.XMultiServiceFactory multiFactory,
com.sun.star.registry.XRegistryKey regKey)
Deprecated.
as of UDK 1.0
|
static boolean |
writeRegistryServiceInfo(String impl_name,
String[] supported_services,
com.sun.star.registry.XRegistryKey xKey)
Writes the registration data into the registry key.
|
static boolean |
writeRegistryServiceInfo(String implName,
String serviceName,
com.sun.star.registry.XRegistryKey regKey)
Writes the registration data into the registry key.
|
public static com.sun.star.lang.XSingleServiceFactory getServiceFactory(Class<?> implClass, com.sun.star.lang.XMultiServiceFactory multiFactory, com.sun.star.registry.XRegistryKey regKey)
implClass - the implementing class.multiFactory - the given multi service factory (service manager).regKey - the given registry key.XServiceInfopublic static com.sun.star.lang.XSingleServiceFactory getServiceFactory(Class<?> implClass, String serviceName, com.sun.star.lang.XMultiServiceFactory multiFactory, com.sun.star.registry.XRegistryKey regKey)
implClass - the implementing class.serviceName - the service name of the implementing class.multiFactory - the given multi service factory (service manager).regKey - the given registry key.XServiceInfopublic static Object createComponentFactory(Class<?> implClass, String serviceName)
implClass - the implementing class.public static boolean writeRegistryServiceInfo(String implName, String serviceName, com.sun.star.registry.XRegistryKey regKey)
implName - the name of the implementing class.serviceName - the service name.regKey - the given registry key.XServiceInfopublic static boolean writeRegistryServiceInfo(String impl_name, String[] supported_services, com.sun.star.registry.XRegistryKey xKey)
Several services are supported.
impl_name - name of implementation.supported_services - supported services of implementation.xKey - registry key to write to.