com.sun.star.lib.uno.helper
Class Factory
- XComponent, XServiceInfo, XSingleComponentFactory, XTypeProvider, XWeak
public class Factory
implements XSingleComponentFactory, XServiceInfo
Factory helper class supporting com.sun.star.lang.XServiceInfo and
com.sun.star.lang.XSingleComponentFactory.
createComponentFactory
public static XSingleComponentFactory createComponentFactory(Class impl_class,
supported_services[] )
throws RuntimeException
Creates an object factory supporting interfaces
com.sun.star.lang.XSingleComponentFactory and
com.sun.star.lang.XServiceInfo
impl_class
- implementation class
createInstanceWithArgumentsAndContext
public final Object createInstanceWithArgumentsAndContext(arguments[] ,
XComponentContext xContext)
throws Exception
createInstanceWithContext
public final Object createInstanceWithContext(XComponentContext xContext)
throws Exception
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,
supported_services[] ,
XRegistryKey xKey)
Writes component's implementation info to given registry key.
impl_name
- name of implementationxKey
- registry key to write to