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

pack-priv final Class Implementation

extends Object
Class Inheritance
Imports
com.sun.star.connection.ConnectionSetupException, com.sun.star.lang.XMultiServiceFactory, com.sun.star.uno.UnoRuntime

Helper class for Acceptor and Connector.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Object

Returns:

an instance of the requested service. Never returns null.
getConnectionService
(com.sun.star.lang.XMultiServiceFactory
the service factory used to instantiate the requested service.
factory
,
String
has the following format: type*(key=value). The specific service implementation is instantiated through the service factory as com.sun.star.connection.typeservice (with type in lower case, and service either Acceptor or Connector).
description
,
Class<?>
the IDL interface type for which to query the requested service.
serviceClass
,
String
must be either Acceptor or Connector.
serviceType
)

Instantiate a service for a given connection type.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Implementationback to summary
private Implementation()

Method Detail

getConnectionServiceback to summary
public static Object getConnectionService(com.sun.star.lang.XMultiServiceFactory factory, String description, Class<?> serviceClass, String serviceType) throws com.sun.star.connection.ConnectionSetupException

Instantiate a service for a given connection type.

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

the service factory used to instantiate the requested service.

description:String

has the following format: type*(key=value). The specific service implementation is instantiated through the service factory as com.sun.star.connection.typeservice (with type in lower case, and service either Acceptor or Connector).

serviceClass:Class<?>

the IDL interface type for which to query the requested service.

serviceType:String

must be either Acceptor or Connector.

Returns:Object

an instance of the requested service. Never returns null.

Exceptions
ConnectionSetupException:
if the requested service can not be found, or cannot be instantiated.