Class SharedLibraryLoader


  • @Deprecated
    public class SharedLibraryLoader
    extends java.lang.Object
    Deprecated.
    use class Bootstrap bootstrapping a native UNO installation and use the shared library loader service. The SharedLibraryLoader class provides the functionality of the com.sun.star.loader.SharedLibrary service. See also UNOIDL com.sun.star.lang.ServiceManager.
    See Also:
    SharedLibrary
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DEFAULT_IMPLEMENTATION
      Deprecated.
      The default implementation name
      static java.lang.String DEFAULT_LIBRARY
      Deprecated.
      The default library which contains the SharedLibraryLoader component
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static com.sun.star.lang.XSingleServiceFactory getServiceFactory​(com.sun.star.lang.XMultiServiceFactory smgr, com.sun.star.registry.XRegistryKey regKey)
      Deprecated.
      Supplies the ServiceFactory of the default SharedLibraryLoader.
      static com.sun.star.lang.XSingleServiceFactory getServiceFactory​(java.lang.String libName, java.lang.String impName, com.sun.star.lang.XMultiServiceFactory smgr, com.sun.star.registry.XRegistryKey regKey)
      Deprecated.
      Loads and returns a specific factory for a given library and implementation name.
      static boolean writeRegistryServiceInfo​(com.sun.star.lang.XMultiServiceFactory smgr, com.sun.star.registry.XRegistryKey regKey)
      Deprecated.
      Registers the SharedLibraryLoader under a RegistryKey.
      static boolean writeRegistryServiceInfo​(java.lang.String libName, com.sun.star.lang.XMultiServiceFactory smgr, com.sun.star.registry.XRegistryKey regKey)
      Deprecated.
      Registers the SharedLibraryLoader under a RegistryKey.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_LIBRARY

        public static final java.lang.String DEFAULT_LIBRARY
        Deprecated.
        The default library which contains the SharedLibraryLoader component
        See Also:
        Constant Field Values
      • DEFAULT_IMPLEMENTATION

        public static final java.lang.String DEFAULT_IMPLEMENTATION
        Deprecated.
        The default implementation name
        See Also:
        Constant Field Values
    • Constructor Detail

      • SharedLibraryLoader

        public SharedLibraryLoader()
        Deprecated.
    • Method Detail

      • getServiceFactory

        public static com.sun.star.lang.XSingleServiceFactory getServiceFactory​(com.sun.star.lang.XMultiServiceFactory smgr,
                                                                                com.sun.star.registry.XRegistryKey regKey)
        Deprecated.
        Supplies the ServiceFactory of the default SharedLibraryLoader. The defaults are "shlibloader.uno" for the library and "com.sun.star.comp.stoc.DLLComponentLoader" for the component name. See also UNOIDL com.sun.star.lang.ServiceManager and com.sun.star.registry.RegistryKey.
        Parameters:
        smgr - the ServiceManager
        regKey - the root registry key
        Returns:
        the factory for the "com.sun.star.comp.stoc.DLLComponentLoader" component.
        See Also:
        SharedLibrary
      • getServiceFactory

        public static com.sun.star.lang.XSingleServiceFactory getServiceFactory​(java.lang.String libName,
                                                                                java.lang.String impName,
                                                                                com.sun.star.lang.XMultiServiceFactory smgr,
                                                                                com.sun.star.registry.XRegistryKey regKey)
        Deprecated.
        Loads and returns a specific factory for a given library and implementation name. See also UNOIDL com.sun.star.lang.ServiceManager and com.sun.star.registry.RegistryKey.
        Parameters:
        libName - the name of the shared library
        impName - the implementation name of the component
        smgr - the ServiceManager
        regKey - the root registry key
        Returns:
        the factory of the component
        See Also:
        SharedLibrary
      • writeRegistryServiceInfo

        public static boolean writeRegistryServiceInfo​(com.sun.star.lang.XMultiServiceFactory smgr,
                                                       com.sun.star.registry.XRegistryKey regKey)
        Deprecated.
        Registers the SharedLibraryLoader under a RegistryKey. See also UNOIDL com.sun.star.lang.ServiceManager and com.sun.star.registry.RegistryKey.
        Parameters:
        smgr - the ServiceManager
        regKey - the root key under that the component should be registered
        Returns:
        true if the registration was successful - otherwise false
        See Also:
        SharedLibrary
      • writeRegistryServiceInfo

        public static boolean writeRegistryServiceInfo​(java.lang.String libName,
                                                       com.sun.star.lang.XMultiServiceFactory smgr,
                                                       com.sun.star.registry.XRegistryKey regKey)
                                                throws com.sun.star.registry.InvalidRegistryException,
                                                       com.sun.star.uno.RuntimeException
        Deprecated.
        Registers the SharedLibraryLoader under a RegistryKey. See also UNOIDL com.sun.star.lang.ServiceManager and com.sun.star.registry.RegistryKey.
        Parameters:
        libName - name of the shared library
        smgr - the ServiceManager
        regKey - the root key under that the component should be registered
        Returns:
        true if the registration was successful - otherwise false
        Throws:
        com.sun.star.registry.InvalidRegistryException - if the registry is not valid.
        com.sun.star.uno.RuntimeException
        See Also:
        SharedLibrary