Language
	
	Asturianu (ast) 
	Català (ca) 
	Čeština (cs) 
	Dansk (da) 
	Deutsch (de) 
	
	English [US] (en-US) 
	Español (es) 
	Esperanto (eo) 
	Eesti keel (et) 
	Euskara (eu) 
	Français (fr) 
	Gàidhlig (gd) 
	Galego (gl) 
	Italiano (it) 
	Lietuvių (lt) 
	Magyar (hu) 
	Nederlands (nl) 
	Norsk (no) 
	Polski (pl) 
	Português [do Brasil] (pt-BR) 
	Português [Europeu] (pt) 
	Română (ro) 
	Slovenčina (sk) 
	Slovenščina (sl) 
	Suomi (fi) 
	Svenska (sv) 
	Yкраїнська (uk) 
	Tiếng Việt (vi) 
	Türkçe (tr) 
	ኦሮሚኛ (om) 
	Հայերեն (hy) 
	Ελληνικά (el) 
	български език (bg) 
	Русский (ru) 
	Cрпски [ћирилицом] (sr) 
	
	עברית (he) 
	हिन्दी (hi) 
	ភាសាខ្មែរ (km) 
	தமிழ் (ta) 
	ภาษาไทย (th) 
	简体中文 (zh-CN) 
	正體中文 (zh-TW) 
	日本語 (ja) 
	한국어 (ko) 
	 
	
  
  
    
    
   
      
      
Factory (Java UNO Runtime Reference)
 
 
com.sun.star.lib.uno.helper 
 
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  
public class Factory  extends ComponentBase implements XSingleComponentFactory , XServiceInfo    
Factory helper class supporting com.sun.star.lang.XServiceInfo and
    com.sun.star.lang.XSingleComponentFactory.
 
createComponentFactory 
public 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 classimpl_name - implementation namesupported_services - services implemented
Returns: object factory
 Throws: 
RuntimeException Since: UDK 3.2.13 
 
  
createComponentFactory 
public 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 classsupported_services - services implemented
Returns: object factory
 Throws: 
RuntimeException  
  
writeRegistryServiceInfo 
public 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 implementationsupported_services - supported services of implementationxKey - registry key to write to
Returns: success  
  
createInstanceWithContext 
public final Object  createInstanceWithContext (XComponentContext  xContext)
                                       throws Exception  
Specified by: createInstanceWithContext XSingleComponentFactory  
Throws: 
Exception  
 
createInstanceWithArgumentsAndContext 
public final Object  createInstanceWithArgumentsAndContext (Object [] arguments,
                                                          XComponentContext  xContext)
                                                   throws Exception  
Specified by: createInstanceWithArgumentsAndContext XSingleComponentFactory  
Throws: 
Exception  
 
getImplementationName 
public final String  getImplementationName () 
Specified by: getImplementationName XServiceInfo  
 
 
supportsService 
public final boolean supportsService (String  service_name) 
Specified by: supportsService XServiceInfo  
 
 
getSupportedServiceNames 
public final String [] getSupportedServiceNames () 
Specified by: getSupportedServiceNames XServiceInfo