com.sun.star.lib.uno.helper

Class Factory

public class Factory extends ComponentBase implements XSingleComponentFactory, XServiceInfo

Factory helper class supporting com.sun.star.lang.XServiceInfo and com.sun.star.lang.XSingleComponentFactory.

UNKNOWN: This factory implementation does not support lang.XSingleServiceFactory.

Method Summary
static XSingleComponentFactorycreateComponentFactory(Class impl_class, String[] supported_services)
Creates an object factory supporting interfaces com.sun.star.lang.XSingleComponentFactory and com.sun.star.lang.XServiceInfo
ObjectcreateInstanceWithArgumentsAndContext(Object[] arguments, XComponentContext xContext)
ObjectcreateInstanceWithContext(XComponentContext xContext)
StringgetImplementationName()
String[]getSupportedServiceNames()
booleansupportsService(String service_name)
static booleanwriteRegistryServiceInfo(String impl_name, String[] supported_services, XRegistryKey xKey)
Writes component's implementation info to given registry key.

Method Detail

createComponentFactory

public static XSingleComponentFactory createComponentFactory(Class impl_class, String[] supported_services)
Creates an object factory supporting interfaces com.sun.star.lang.XSingleComponentFactory and com.sun.star.lang.XServiceInfo

Parameters: impl_class implementation class supported_services services implemented

Returns: object factory

createInstanceWithArgumentsAndContext

public final Object createInstanceWithArgumentsAndContext(Object[] arguments, XComponentContext xContext)

createInstanceWithContext

public final Object createInstanceWithContext(XComponentContext xContext)

getImplementationName

public final String getImplementationName()

getSupportedServiceNames

public final String[] getSupportedServiceNames()

supportsService

public final boolean supportsService(String service_name)

writeRegistryServiceInfo

public static boolean writeRegistryServiceInfo(String impl_name, String[] supported_services, XRegistryKey xKey)
Writes component's implementation info to given registry key.

Parameters: impl_name name of implementation supported_services supported services of implementation xKey registry key to write to

Returns: success