public class Factory extends ComponentBase implements XSingleComponentFactory, XServiceInfo
Note: This factory implementation does not support lang.XSingleServiceFactory.
bDisposed, bInDispose, listenerContainerUNOTYPEINFOUNOTYPEINFOUNOTYPEINFOUNOTYPEINFOUNOTYPEINFO| 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, removeEventListenergetImplementationId, getTypes, queryAdapterpublic static XSingleComponentFactory createComponentFactory(Class impl_class, String impl_name, String[] supported_services) throws RuntimeException
impl_class - implementation classimpl_name - implementation namesupported_services - services implementedRuntimeExceptionpublic static XSingleComponentFactory createComponentFactory(Class impl_class, String[] supported_services) throws RuntimeException
impl_class - implementation classsupported_services - services implementedRuntimeExceptionpublic 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 XSingleComponentFactoryExceptionpublic final Object createInstanceWithArgumentsAndContext(Object[] arguments, XComponentContext xContext) throws Exception
createInstanceWithArgumentsAndContext in interface XSingleComponentFactoryExceptionpublic final String getImplementationName()
getImplementationName in interface XServiceInfopublic final boolean supportsService(String service_name)
supportsService in interface XServiceInfopublic final String[] getSupportedServiceNames()
getSupportedServiceNames in interface XServiceInfo