ConstantInstanceProvider is a component
that implements the XInstanceProvider Interface.
com.sun.star.bridge.XBridge , com.sun.star.bridge.XBridgeFactory , com.sun.star.bridge.XInstanceProvider , com.sun.star.comp.loader.JavaLoader
| Modifier and Type | Field and Description |
|---|---|
| private static final String | __serviceName
The name of the service, the |
| protected Object | |
| protected com. | |
| protected String | |
| public static final boolean | DEBUG
When set to true, enables various debugging output. |
| Access | Constructor and Description |
|---|---|
| public | ConstantInstanceProvider(com.
the provided service manager serviceManagerConstructs a new |
| Modifier and Type | Method and Description |
|---|---|
| public static com. | Returns: returns aXSingleServiceFactory for creating the component.the name of the implementation for which a service is desired. implName, com.the service manager to be uses if needed. multiFactory,the registryKey. regKeyGives a factory for creating the service. |
| public Object | Returns: the desired instancethe name of the desired instance sInstanceName)Gives an object for the passed instance name. |
| public void |
| __serviceName | back to summary |
|---|---|
| private static final String __serviceName The name of the service, the | |
| _instance | back to summary |
|---|---|
| protected Object _instance | |
| _serviceManager | back to summary |
|---|---|
| protected com. | |
| _serviceName | back to summary |
|---|---|
| protected String _serviceName | |
| DEBUG | back to summary |
|---|---|
| public static final boolean DEBUG When set to true, enables various debugging output. | |
| ConstantInstanceProvider | back to summary |
|---|---|
| public ConstantInstanceProvider(com. Constructs a new Uses the provided ServiceManager as the provided instance.
| |
| __getServiceFactory | back to summary |
|---|---|
| public static com. Gives a factory for creating the service. This method is called by the
| |
| getInstance | back 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. | |
| setInstance | back to summary |
|---|---|
| public void setInstance(String serviceName) throws com.sun.star.uno.Exception | |