com.sun.star.lang.XServiceInfo
, com.sun.star.lang.XSingleComponentFactory
, com.sun.star.uno.XInterface
public class Factory extends ComponentBase implements com.sun.star.lang.XSingleComponentFactory, com.sun.star.lang.XServiceInfo
Note: This factory implementation does not support lang.XSingleServiceFactory.
bDisposed, bInDispose, listenerContainer
Modifier and Type | Method | Description |
---|---|---|
static com.sun.star.lang.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 com.sun.star.lang.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,
com.sun.star.uno.XComponentContext xContext) |
|
Object |
createInstanceWithContext(com.sun.star.uno.XComponentContext xContext) |
|
String |
getImplementationName() |
|
String[] |
getSupportedServiceNames() |
|
boolean |
supportsService(String service_name) |
|
static boolean |
writeRegistryServiceInfo(String impl_name,
String[] supported_services,
com.sun.star.registry.XRegistryKey xKey) |
Writes component's implementation info to given registry key.
|
addEventListener, dispose, finalize, postDisposing, preDisposing, removeEventListener
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getImplementationId, getTypes, queryAdapter
public static com.sun.star.lang.XSingleComponentFactory createComponentFactory(Class impl_class, String impl_name, String[] supported_services) throws com.sun.star.uno.RuntimeException
impl_class
- implementation classimpl_name
- implementation namesupported_services
- services implementedcom.sun.star.uno.RuntimeException
public static com.sun.star.lang.XSingleComponentFactory createComponentFactory(Class impl_class, String[] supported_services) throws com.sun.star.uno.RuntimeException
impl_class
- implementation classsupported_services
- services implementedcom.sun.star.uno.RuntimeException
public static boolean writeRegistryServiceInfo(String impl_name, String[] supported_services, com.sun.star.registry.XRegistryKey xKey)
impl_name
- name of implementationsupported_services
- supported services of implementationxKey
- registry key to write topublic final Object createInstanceWithContext(com.sun.star.uno.XComponentContext xContext) throws com.sun.star.uno.Exception
createInstanceWithContext
in interface com.sun.star.lang.XSingleComponentFactory
com.sun.star.uno.Exception
public final Object createInstanceWithArgumentsAndContext(Object[] arguments, com.sun.star.uno.XComponentContext xContext) throws com.sun.star.uno.Exception
createInstanceWithArgumentsAndContext
in interface com.sun.star.lang.XSingleComponentFactory
com.sun.star.uno.Exception
public final String getImplementationName()
getImplementationName
in interface com.sun.star.lang.XServiceInfo
public final boolean supportsService(String service_name)
supportsService
in interface com.sun.star.lang.XServiceInfo
public final String[] getSupportedServiceNames()
getSupportedServiceNames
in interface com.sun.star.lang.XServiceInfo