This class has default implementations for 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 |
| Modifier and Type | Field and Description |
|---|---|
| private static final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Object | Returns: returns a factory object.the implementing class. implClass, String serviceName)Creates a factory for the given class. |
| public static com. | Returns: returns a factory.the implementing class. implClass, com.the given multi service factory (service manager). multiFactory,the given registry key. regKey
Deprecated
as of UDK 1.0
Creates a factory for the given class. |
| public static com. | Returns: returns a factory.the implementing class. implClass, String the service name of the implementing class. serviceName, com.the given multi service factory (service manager). multiFactory,the given registry key. regKeyCreates a factory for the given class. |
| public static boolean | Returns: success.the name of the implementing class. implName, String the service name. serviceName, com.the given registry key. regKeyWrites the registration data into the registry key. |
| public static boolean | Returns: success.name of implementation. impl_name, String[] supported services of implementation. supported_services, com.registry key to write to. xKeyWrites the registration data into the registry key. |
| DEBUG | back to summary |
|---|---|
| private static final boolean DEBUG | |
| FactoryHelper | back to summary |
|---|---|
| public FactoryHelper() | |
| createComponentFactory | back to summary |
|---|---|
| public static Object createComponentFactory(Class<?> implClass, String serviceName) Creates a factory for the given class. | |
| getServiceFactory | back to summary |
|---|---|
| public static com. Deprecated as of UDK 1.0 Creates a factory for the given class.
| |
| getServiceFactory | back to summary |
|---|---|
| public static com. Creates a factory for the given class.
| |
| writeRegistryServiceInfo | back to summary |
|---|---|
| public static boolean writeRegistryServiceInfo(String implName, String serviceName, com. Writes the registration data into the registry key.
| |
| writeRegistryServiceInfo | back to summary |
|---|---|
| public static boolean writeRegistryServiceInfo(String impl_name, String[] supported_services, com. Writes the registration data into the registry key. Several services are supported. | |
| Modifier and Type | Field and Description |
|---|---|
| protected Constructor | |
| protected String | |
| protected int | |
| protected String | |
| protected com. | |
| protected com. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: returns an instance of the desired service.Creates an instance of the desired service. |
| public Object | Returns: returns an instance of the desired service.the args given to the constructor of the service. args)Creates an instance of the desired service. |
| public Object | createInstanceWithArgumentsAndContext(Object[] rArguments, com.
|
| public Object | |
| public byte[] | |
| public String | |
| private final com. | |
| public String[] | Returns: returns an array of supported services.Gives the supported services. |
| public Type[] | |
| public boolean | Returns: returns true if the given service is supported.Indicates if the given service is supported. |
| _constructor | back to summary |
|---|---|
| protected Constructor<?> _constructor | |
| _implName | back to summary |
|---|---|
| protected String _implName | |
| _nCode | back to summary |
|---|---|
| protected int _nCode | |
| _serviceName | back to summary |
|---|---|
| protected String _serviceName | |
| _xMultiServiceFactory | back to summary |
|---|---|
| protected com. | |
| _xRegistryKey | back to summary |
|---|---|
| protected com. | |
| Factory | back to summary |
|---|---|
| protected Factory(Class<?> implClass, String serviceName, com. | |
| createInstance | back to summary |
|---|---|
| public Object createInstance() throws com.sun.star.uno.Exception, com.sun.star.uno.RuntimeException Creates an instance of the desired service.
| |
| createInstanceWithArguments | back to summary |
|---|---|
| public Object createInstanceWithArguments(Object[] args) throws com.sun.star.uno.Exception, com.sun.star.uno.RuntimeException Creates an instance of the desired service.
| |
| createInstanceWithArgumentsAndContext | back to summary |
|---|---|
| public Object createInstanceWithArgumentsAndContext(Object[] rArguments, com. | |
| createInstanceWithContext | back to summary |
|---|---|
| public Object createInstanceWithContext(com. | |
| getImplementationId | back to summary |
|---|---|
| public byte[] getImplementationId() | |
| getImplementationName | back to summary |
|---|---|
| public String getImplementationName() throws com.sun.star.uno.RuntimeException Gives the implementation name.
| |
| getSMgr | back to summary |
|---|---|
| private final com. | |
| getSupportedServiceNames | back to summary |
|---|---|
| public String[] getSupportedServiceNames() throws com.sun.star.uno.RuntimeException Gives the supported services.
| |
| getTypes | back to summary |
|---|---|
| public Type[] getTypes() | |
| supportsService | back to summary |
|---|---|
| public boolean supportsService(String serviceName) throws com.sun.star.uno.RuntimeException Indicates if the given service is supported.
| |