public class FactoryHelper
extends java.lang.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 java.lang.Object |
createComponentFactory(java.lang.Class<?> implClass,
java.lang.String serviceName)
Creates a factory for the given class.
|
static com.sun.star.lang.XSingleServiceFactory |
getServiceFactory(java.lang.Class<?> implClass,
java.lang.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(java.lang.Class<?> implClass,
com.sun.star.lang.XMultiServiceFactory multiFactory,
com.sun.star.registry.XRegistryKey regKey)
Deprecated.
as of UDK 1.0
|
static boolean |
writeRegistryServiceInfo(java.lang.String impl_name,
java.lang.String[] supported_services,
com.sun.star.registry.XRegistryKey xKey)
Writes the registration data into the registry key.
|
static boolean |
writeRegistryServiceInfo(java.lang.String implName,
java.lang.String serviceName,
com.sun.star.registry.XRegistryKey regKey)
Writes the registration data into the registry key.
|
public static com.sun.star.lang.XSingleServiceFactory getServiceFactory(java.lang.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(java.lang.Class<?> implClass,
java.lang.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 java.lang.Object createComponentFactory(java.lang.Class<?> implClass,
java.lang.String serviceName)
implClass - the implementing class.public static boolean writeRegistryServiceInfo(java.lang.String implName,
java.lang.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(java.lang.String impl_name,
java.lang.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.