UDK 3.1.0 Java API Reference

com.sun.star.lib.uno.helper
クラス 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
すべての実装インタフェース:
XComponent, XInterface, XServiceInfo, XSingleComponentFactory, XTypeProvider, XWeak

public class Factory
extends ComponentBase
implements XSingleComponentFactory, XServiceInfo

Factory helper class supporting com.sun.star.lang.XServiceInfo and com.sun.star.lang.XSingleComponentFactory.


フィールドの概要
 
クラス com.sun.star.lib.uno.helper.ComponentBase から継承したフィールド
bDisposed, bInDispose, listenerContainer
 
クラス com.sun.star.lib.uno.helper.WeakBase から継承したフィールド
_mapImplementationIds, _mapTypes
 
インタフェース com.sun.star.lang.XSingleComponentFactory から継承したフィールド
UNOTYPEINFO
 
インタフェース com.sun.star.lang.XServiceInfo から継承したフィールド
UNOTYPEINFO
 
インタフェース com.sun.star.lang.XComponent から継承したフィールド
UNOTYPEINFO
 
インタフェース com.sun.star.uno.XWeak から継承したフィールド
UNOTYPEINFO
 
インタフェース com.sun.star.lang.XTypeProvider から継承したフィールド
UNOTYPEINFO
 
メソッドの概要
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
 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.
 
クラス com.sun.star.lib.uno.helper.ComponentBase から継承したメソッド
addEventListener, dispose, finalize, postDisposing, preDisposing, removeEventListener
 
クラス com.sun.star.lib.uno.helper.WeakBase から継承したメソッド
getImplementationId, getTypes, queryAdapter
 
クラス java.lang.Object から継承したメソッド
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

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

パラメータ:
impl_class - implementation class
supported_services - services implemented
戻り値:
object factory
RuntimeException

writeRegistryServiceInfo

public static boolean writeRegistryServiceInfo(String impl_name,
                                               String[] supported_services,
                                               XRegistryKey xKey)
Writes component's implementation info to given registry key.

パラメータ:
impl_name - name of implementation
supported_services - supported services of implementation
xKey - registry key to write to
戻り値:
success

createInstanceWithContext

public final Object createInstanceWithContext(XComponentContext xContext)
                                       throws Exception
定義:
インタフェース XSingleComponentFactory 内の createInstanceWithContext
Exception

createInstanceWithArgumentsAndContext

public final Object createInstanceWithArgumentsAndContext(Object[] arguments,
                                                          XComponentContext xContext)
                                                   throws Exception
定義:
インタフェース XSingleComponentFactory 内の createInstanceWithArgumentsAndContext
Exception

getImplementationName

public final String getImplementationName()
定義:
インタフェース XServiceInfo 内の getImplementationName

supportsService

public final boolean supportsService(String service_name)
定義:
インタフェース XServiceInfo 内の supportsService

getSupportedServiceNames

public final String[] getSupportedServiceNames()
定義:
インタフェース XServiceInfo 内の getSupportedServiceNames

UDK 3.1.0 Java API Reference