Package com.sun.star.lib.uno.helper
Class Factory
java.lang.Object
com.sun.star.lib.uno.helper.WeakBase
com.sun.star.lib.uno.helper.ComponentBase
com.sun.star.lib.uno.helper.Factory
- All Implemented Interfaces:
- XComponent,- XServiceInfo,- XSingleComponentFactory,- XTypeProvider,- XInterface,- XWeak
Factory helper class supporting com.sun.star.lang.XServiceInfo and
    com.sun.star.lang.XSingleComponentFactory.
    
Note: This factory implementation does not support lang.XSingleServiceFactory.
- 
Field SummaryFields inherited from class com.sun.star.lib.uno.helper.ComponentBasebDisposed, bInDispose, listenerContainerFields inherited from interface com.sun.star.lang.XComponentUNOTYPEINFOFields inherited from interface com.sun.star.lang.XServiceInfoUNOTYPEINFOFields inherited from interface com.sun.star.lang.XSingleComponentFactoryUNOTYPEINFOFields inherited from interface com.sun.star.lang.XTypeProviderUNOTYPEINFOFields inherited from interface com.sun.star.uno.XWeakUNOTYPEINFO
- 
Method SummaryModifier and TypeMethodDescriptionstatic XSingleComponentFactorycreateComponentFactory(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 XSingleComponentFactorycreateComponentFactory(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.XServiceInfofinal ObjectcreateInstanceWithArgumentsAndContext(Object[] arguments, XComponentContext xContext) final ObjectcreateInstanceWithContext(XComponentContext xContext) final Stringfinal String[]final booleansupportsService(String service_name) static booleanwriteRegistryServiceInfo(String impl_name, String[] supported_services, XRegistryKey xKey) Writes component's implementation info to given registry key.Methods inherited from class com.sun.star.lib.uno.helper.ComponentBaseaddEventListener, dispose, finalize, postDisposing, preDisposing, removeEventListenerMethods inherited from class com.sun.star.lib.uno.helper.WeakBasegetImplementationId, getTypes, queryAdapter
- 
Method Details- 
createComponentFactorypublic static XSingleComponentFactory createComponentFactory(Class impl_class, String impl_name, String[] 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
- impl_name- implementation name
- supported_services- services implemented
- Returns:
- object factory
- Throws:
- RuntimeException
- Since:
- UDK 3.2.13
 
- 
createComponentFactorypublic static XSingleComponentFactory createComponentFactory(Class impl_class, String[] supported_services) throws RuntimeException 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.- Parameters:
- impl_class- implementation class
- supported_services- services implemented
- Returns:
- object factory
- Throws:
- RuntimeException
 
- 
writeRegistryServiceInfopublic static boolean writeRegistryServiceInfo(String impl_name, String[] supported_services, XRegistryKey xKey) Writes component's implementation info to given registry key.- Parameters:
- impl_name- name of implementation
- supported_services- supported services of implementation
- xKey- registry key to write to
- Returns:
- success
 
- 
createInstanceWithContext- Specified by:
- createInstanceWithContextin interface- XSingleComponentFactory
- Throws:
- Exception
 
- 
createInstanceWithArgumentsAndContextpublic final Object createInstanceWithArgumentsAndContext(Object[] arguments, XComponentContext xContext) throws Exception - Specified by:
- createInstanceWithArgumentsAndContextin interface- XSingleComponentFactory
- Throws:
- Exception
 
- 
getImplementationName- Specified by:
- getImplementationNamein interface- XServiceInfo
 
- 
supportsService- Specified by:
- supportsServicein interface- XServiceInfo
 
- 
getSupportedServiceNames- Specified by:
- getSupportedServiceNamesin interface- XServiceInfo
 
 
-