public class FactoryHelper
extends java.lang.Object
getServiceFactory
and writeRegistryServiceInfo.
com.sun.star.lang.XMultiServiceFactory,
com.sun.star.lang.XServiceInfo,
com.sun.star.lang.XSingleServiceFactory,
com.sun.star.registry.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 XSingleServiceFactory |
getServiceFactory(java.lang.Class implClass,
java.lang.String serviceName,
XMultiServiceFactory multiFactory,
XRegistryKey regKey)
Creates a factory for the given class.
|
static XSingleServiceFactory |
getServiceFactory(java.lang.Class implClass,
XMultiServiceFactory multiFactory,
XRegistryKey regKey)
Deprecated.
as of UDK 1.0
|
static boolean |
writeRegistryServiceInfo(java.lang.String impl_name,
java.lang.String[] supported_services,
XRegistryKey xKey)
Writes the registration data into the registry key.
|
static boolean |
writeRegistryServiceInfo(java.lang.String implName,
java.lang.String serviceName,
XRegistryKey regKey)
Writes the registration data into the registry key
|
public static XSingleServiceFactory getServiceFactory(java.lang.Class implClass,
XMultiServiceFactory multiFactory,
XRegistryKey regKey)
implClass - the implementing classmultiFactory - the given multi service factory (service manager)regKey - the given registry keycom.sun.star.lang.XServiceInfopublic static XSingleServiceFactory getServiceFactory(java.lang.Class implClass,
java.lang.String serviceName,
XMultiServiceFactory multiFactory,
XRegistryKey regKey)
implClass - the implementing classserviceName - the service name of the implementing classmultiFactory - the given multi service factory (service manager)regKey - the given registry keycom.sun.star.lang.XServiceInfopublic static java.lang.Object createComponentFactory(java.lang.Class implClass,
java.lang.String serviceName)
implClass - the implementing classpublic static boolean writeRegistryServiceInfo(java.lang.String implName,
java.lang.String serviceName,
XRegistryKey regKey)
implName - the name of the implementing classserviceName - the service nameregKey - the given registry keycom.sun.star.lang.XServiceInfopublic static boolean writeRegistryServiceInfo(java.lang.String impl_name,
java.lang.String[] supported_services,
XRegistryKey xKey)
impl_name - name of implementationsupported_services - supported services of implementationxKey - registry key to write to