Top Fields Constructors Methods
com.sun.star.comp.helper

public Class SharedLibraryLoader

extends Object
Class Inheritance
Annotations
@Deprecated
Imports
com.sun.star.uno.UnoRuntime, com.sun.star.lang.XMultiServiceFactory, com.sun.star.lang.XSingleServiceFactory, com.sun.star.registry.XRegistryKey

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
com.sun.star.loader.SharedLibrary

Field Summary

Modifier and TypeField and Description
public static final String
DEFAULT_IMPLEMENTATION

The default implementation name

public static final String
DEFAULT_LIBRARY

The default library which contains the SharedLibraryLoader component

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static native Object
component_getFactory(String libName, String implName, com.sun.star.lang.XMultiServiceFactory smgr, com.sun.star.registry.XRegistryKey regKey, ClassLoader loader)

private static native boolean
component_writeInfo(String libName, com.sun.star.lang.XMultiServiceFactory smgr, com.sun.star.registry.XRegistryKey regKey, ClassLoader loader)

public static com.sun.star.lang.XSingleServiceFactory

Returns:

the factory for the "com.sun.star.comp.stoc.DLLComponentLoader" component.
getServiceFactory
(com.sun.star.lang.XMultiServiceFactory
the ServiceManager
smgr
,
com.sun.star.registry.XRegistryKey
the root registry key
regKey
)

Supplies the ServiceFactory of the default SharedLibraryLoader.

public static com.sun.star.lang.XSingleServiceFactory

Returns:

the factory of the component
getServiceFactory
(String
the name of the shared library
libName
,
String
the implementation name of the component
impName
,
com.sun.star.lang.XMultiServiceFactory
the ServiceManager
smgr
,
com.sun.star.registry.XRegistryKey
the root registry key
regKey
)

Loads and returns a specific factory for a given library and implementation name.

public static boolean

Returns:

true if the registration was successful - otherwise false
writeRegistryServiceInfo
(com.sun.star.lang.XMultiServiceFactory
the ServiceManager
smgr
,
com.sun.star.registry.XRegistryKey
the root key under that the component should be registered
regKey
)

Registers the SharedLibraryLoader under a RegistryKey.

public static boolean

Returns:

true if the registration was successful - otherwise false
writeRegistryServiceInfo
(String
name of the shared library
libName
,
com.sun.star.lang.XMultiServiceFactory
the ServiceManager
smgr
,
com.sun.star.registry.XRegistryKey
the root key under that the component should be registered
regKey
)

Registers the SharedLibraryLoader under a RegistryKey.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEFAULT_IMPLEMENTATIONback to summary
public static final String DEFAULT_IMPLEMENTATION

The default implementation name

DEFAULT_LIBRARYback to summary
public static final String DEFAULT_LIBRARY

The default library which contains the SharedLibraryLoader component

Constructor Detail

SharedLibraryLoaderback to summary
public SharedLibraryLoader()

Method Detail

component_getFactoryback to summary
private static native Object component_getFactory(String libName, String implName, com.sun.star.lang.XMultiServiceFactory smgr, com.sun.star.registry.XRegistryKey regKey, ClassLoader loader)
component_writeInfoback to summary
private static native boolean component_writeInfo(String libName, com.sun.star.lang.XMultiServiceFactory smgr, com.sun.star.registry.XRegistryKey regKey, ClassLoader loader)
getServiceFactoryback to summary
public static com.sun.star.lang.XSingleServiceFactory getServiceFactory(com.sun.star.lang.XMultiServiceFactory smgr, com.sun.star.registry.XRegistryKey regKey)

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:com.sun.star.lang.XMultiServiceFactory

the ServiceManager

regKey:com.sun.star.registry.XRegistryKey

the root registry key

Returns:com.sun.star.lang.XSingleServiceFactory

the factory for the "com.sun.star.comp.stoc.DLLComponentLoader" component.

See Also
com.sun.star.loader.SharedLibrary
getServiceFactoryback to summary
public static com.sun.star.lang.XSingleServiceFactory getServiceFactory(String libName, String impName, com.sun.star.lang.XMultiServiceFactory smgr, com.sun.star.registry.XRegistryKey regKey)

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:String

the name of the shared library

impName:String

the implementation name of the component

smgr:com.sun.star.lang.XMultiServiceFactory

the ServiceManager

regKey:com.sun.star.registry.XRegistryKey

the root registry key

Returns:com.sun.star.lang.XSingleServiceFactory

the factory of the component

See Also
com.sun.star.loader.SharedLibrary
writeRegistryServiceInfoback to summary
public static boolean writeRegistryServiceInfo(com.sun.star.lang.XMultiServiceFactory smgr, com.sun.star.registry.XRegistryKey regKey)

Registers the SharedLibraryLoader under a RegistryKey. See also UNOIDL com.sun.star.lang.ServiceManager and com.sun.star.registry.RegistryKey.

Parameters
smgr:com.sun.star.lang.XMultiServiceFactory

the ServiceManager

regKey:com.sun.star.registry.XRegistryKey

the root key under that the component should be registered

Returns:boolean

true if the registration was successful - otherwise false

See Also
com.sun.star.loader.SharedLibrary
writeRegistryServiceInfoback to summary
public static boolean writeRegistryServiceInfo(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

Registers the SharedLibraryLoader under a RegistryKey. See also UNOIDL com.sun.star.lang.ServiceManager and com.sun.star.registry.RegistryKey.

Parameters
libName:String

name of the shared library

smgr:com.sun.star.lang.XMultiServiceFactory

the ServiceManager

regKey:com.sun.star.registry.XRegistryKey

the root key under that the component should be registered

Returns:boolean

true if the registration was successful - otherwise false

Exceptions
InvalidRegistryException:
if the registry is not valid.
See Also
com.sun.star.loader.SharedLibrary