Top Description Fields Constructors Methods
com.sun.star.comp.connections

public Class ConstantInstanceProvider

extends Object
implements com.sun.star.bridge.XInstanceProvider
Class Inheritance
Imports
com.sun.star.bridge.XInstanceProvider, com.sun.star.lang.XMultiServiceFactory, com.sun.star.lang.XSingleServiceFactory, com.sun.star.registry.XRegistryKey, com.sun.star.comp.loader.FactoryHelper

The ConstantInstanceProvider is a component that implements the XInstanceProvider Interface.
Since
UDK1.0
See Also
com.sun.star.bridge.XBridge, com.sun.star.bridge.XBridgeFactory, com.sun.star.bridge.XInstanceProvider, com.sun.star.comp.loader.JavaLoader

Field Summary

Modifier and TypeField and Description
private static final String
__serviceName

The name of the service, the JavaLoader accesses this through reflection.

protected Object
protected com.sun.star.lang.XMultiServiceFactory
protected String
public static final boolean
DEBUG

When set to true, enables various debugging output.

Constructor Summary

AccessConstructor and Description
public
ConstantInstanceProvider(com.sun.star.lang.XMultiServiceFactory
the provided service manager
serviceManager
)

Constructs a new ConstantInstanceProvider.

Method Summary

Modifier and TypeMethod and Description
public static com.sun.star.lang.XSingleServiceFactory

Returns:

returns a XSingleServiceFactory for creating the component.
__getServiceFactory
(String
the name of the implementation for which a service is desired.
implName
,
com.sun.star.lang.XMultiServiceFactory
the service manager to be uses if needed.
multiFactory
,
com.sun.star.registry.XRegistryKey
the registryKey.
regKey
)

Gives a factory for creating the service.

public Object

Returns:

the desired instance
getInstance
(String
the name of the desired instance
sInstanceName
)

Gives an object for the passed instance name.

public void
setInstance(String serviceName)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

__serviceNameback to summary
private static final String __serviceName

The name of the service, the JavaLoader accesses this through reflection.

_instanceback to summary
protected Object _instance
_serviceManagerback to summary
protected com.sun.star.lang.XMultiServiceFactory _serviceManager
_serviceNameback to summary
protected String _serviceName
DEBUGback to summary
public static final boolean DEBUG

When set to true, enables various debugging output.

Constructor Detail

ConstantInstanceProviderback to summary
public ConstantInstanceProvider(com.sun.star.lang.XMultiServiceFactory serviceManager)

Constructs a new ConstantInstanceProvider.

Uses the provided ServiceManager as the provided instance.

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

the provided service manager

Method Detail

__getServiceFactoryback to summary
public static com.sun.star.lang.XSingleServiceFactory __getServiceFactory(String implName, com.sun.star.lang.XMultiServiceFactory multiFactory, com.sun.star.registry.XRegistryKey regKey)

Gives a factory for creating the service.

This method is called by the JavaLoader.

Parameters
implName:String

the name of the implementation for which a service is desired.

multiFactory:com.sun.star.lang.XMultiServiceFactory

the service manager to be uses if needed.

regKey:com.sun.star.registry.XRegistryKey

the registryKey.

Returns:com.sun.star.lang.XSingleServiceFactory

returns a XSingleServiceFactory for creating the component.

See Also
com.sun.star.comp.loader.JavaLoader
getInstanceback to summary
public Object getInstance(String sInstanceName) throws com.sun.star.container.NoSuchElementException, com.sun.star.uno.RuntimeException

Gives an object for the passed instance name.

Parameters
sInstanceName:String

the name of the desired instance

Returns:Object

the desired instance

setInstanceback to summary
public void setInstance(String serviceName) throws com.sun.star.uno.Exception