UDK 3.2.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, 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.


フィールドの概要
 
クラス 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.2.0 Java API Reference