com.sun.star.lib.uno.helper

Class Factory

Implemented Interfaces:
XComponent, XServiceInfo, XSingleComponentFactory, XTypeProvider, XWeak

public class Factory
extends ComponentBase
implements XSingleComponentFactory, XServiceInfo

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

Field Summary

Fields inherited from class com.sun.star.lib.uno.helper.ComponentBase

bDisposed, bInDispose, listenerContainer

Fields inherited from class com.sun.star.lib.uno.helper.WeakBase

_mapImplementationIds, _mapTypes

Method Summary

static XSingleComponentFactory
createComponentFactory(Class impl_class, supported_services[] )
Creates an object factory supporting interfaces com.sun.star.lang.XSingleComponentFactory and com.sun.star.lang.XServiceInfo
Object
createInstanceWithArgumentsAndContext(arguments[] , XComponentContext xContext)
Object
createInstanceWithContext(XComponentContext xContext)
String
getImplementationName()
String[]
getSupportedServiceNames()
boolean
supportsService(String service_name)
static boolean
writeRegistryServiceInfo(String impl_name, supported_services[] , XRegistryKey xKey)
Writes component's implementation info to given registry key.

Methods inherited from class com.sun.star.lib.uno.helper.ComponentBase

addEventListener, dispose, finalize, postDisposing, preDisposing, removeEventListener

Methods inherited from class com.sun.star.lib.uno.helper.WeakBase

finalize, getImplementationId, getTypes, queryAdapter

Method Details

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
Parameters:
impl_class - implementation class
Returns:
object factory

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.
Parameters:
impl_name - name of implementation
xKey - registry key to write to
Returns:
success