com.sun.star.lib.uno.helper
public class Factory extends ComponentBase implements XSingleComponentFactory, XServiceInfo
bDisposed, bInDispose, listenerContainer
_mapImplementationIds, _mapTypes
UNOTYPEINFO
UNOTYPEINFO
UNOTYPEINFO
UNOTYPEINFO
UNOTYPEINFO
Modifier and Type | Method and Description |
---|---|
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
The implementation name is the name of the implementation class.
|
static XSingleComponentFactory |
createComponentFactory(Class impl_class,
String impl_name,
String[] supported_services)
Creates an object factory supporting interfaces
com.sun.star.lang.XSingleComponentFactory and
com.sun.star.lang.XServiceInfo
|
Object |
createInstanceWithArgumentsAndContext(Object[] arguments,
XComponentContext xContext) |
Object |
createInstanceWithContext(XComponentContext xContext) |
String |
getImplementationName() |
String[] |
getSupportedServiceNames() |
boolean |
supportsService(String service_name) |
static boolean |
writeRegistryServiceInfo(String impl_name,
String[] supported_services,
XRegistryKey xKey)
Writes component's implementation info to given registry key.
|
addEventListener, dispose, finalize, postDisposing, preDisposing, removeEventListener
getImplementationId, getTypes, queryAdapter
public static XSingleComponentFactory createComponentFactory(Class impl_class, String impl_name, String[] supported_services) throws RuntimeException
impl_class
- implementation classimpl_name
- implementation namesupported_services
- services implementedRuntimeException
public static XSingleComponentFactory createComponentFactory(Class impl_class, String[] supported_services) throws RuntimeException
impl_class
- implementation classsupported_services
- services implementedRuntimeException
public static boolean writeRegistryServiceInfo(String impl_name, String[] supported_services, XRegistryKey xKey)
impl_name
- name of implementationsupported_services
- supported services of implementationxKey
- registry key to write topublic final Object createInstanceWithContext(XComponentContext xContext) throws Exception
createInstanceWithContext
in interface XSingleComponentFactory
Exception
public final Object createInstanceWithArgumentsAndContext(Object[] arguments, XComponentContext xContext) throws Exception
createInstanceWithArgumentsAndContext
in interface XSingleComponentFactory
Exception
public final String getImplementationName()
getImplementationName
in interface XServiceInfo
public final boolean supportsService(String service_name)
supportsService
in interface XServiceInfo
public final String[] getSupportedServiceNames()
getSupportedServiceNames
in interface XServiceInfo