@PublicAPI public class ServiceDescriptorTools extends java.lang.Object
ServiceDescriptorReader
,
ServiceDescriptorWriter
and ServiceDialogProvider
implementations and various configuration data for services.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_SERVICE_CONFIGURATION_PATH
Path to default services configuration xml
|
static java.lang.String |
DEFAULT_SERVICE_DESCRIPTOR_EDITOR_PROVIDER_CLASSNAME
the Marvin Default service descriptor editor provider class
|
static java.lang.String |
DEFAULT_SERVICE_DESCRIPTOR_READER_CLASSNAME
the Marvin Default service descriptor reader class
|
static java.lang.String |
DEFAULT_SERVICE_DESCRIPTOR_WRITER_CLASSNAME
the Marvin Default service descriptor writer class
|
static java.lang.String |
DEFAULT_SERVICE_DIALOG_PROVIDER_CLASSNAME
the Marvin Default service dialog provider class
|
static java.lang.String |
DEFAULT_USER_SERVICE_CONFIGURATION_FILENAME
name of default user service configuration file
|
static java.lang.String |
SERVICE_CONFIGURATION_PATH_PROPERTY_KEY
Java System Property key to globally override default configuration path.
|
static java.lang.String |
SERVICE_DIALOG_PROVIDER_CLASS_NAME_PROPERTY_KEY
Java System Property key to globally override default Service Dialog Provider class with custom implementation.
|
Constructor and Description |
---|
ServiceDescriptorTools() |
Modifier and Type | Method and Description |
---|---|
static ServiceDescriptorEditorProvider |
getDefaultServiceDescriptorEditorProvider()
Returns the default
ServiceDescriptorEditorProvider instance |
static ServiceDescriptorReader |
getDefaultServiceDescriptorReader()
Returns the default
ServiceDescriptorReader instance |
static ServiceDescriptorWriter |
getDefaultServiceDescriptorWriter()
Returns the default
ServiceDescriptorWriter instance |
static ServiceDialogProvider |
getDefaultServiceDialogProvider()
Returns the default
ServiceDialogProvider instance |
static java.io.InputStream |
getServiceDescriptorConfigurationAsStream()
Returns an
InputStream with service configuration. |
static java.io.InputStream |
getServiceDescriptorConfigurationAsStream(java.lang.String configPath)
Returns the service descriptor configuration stream from path, or
null . |
static java.io.InputStream |
getServiceDescriptorConfigurationAsStream(UserSettings settings)
Returns an
InputStream with service configuration. |
static ServiceDescriptorEditorProvider |
getServiceDescriptorEditorProvider(java.lang.String serviceDescriptorEditorProviderClassName)
Returns the
ServiceDescriptorEditorProvider instance if
available, or null |
static ServiceDescriptorReader |
getServiceDescriptorReader(java.lang.String descriptorReaderClassName)
Returns the
ServiceDescriptorReader instance if available, or
null |
static ServiceDescriptorWriter |
getServiceDescriptorWriter(java.lang.String descriptorWriterClassName)
Returns the
ServiceDescriptorWriter instance if available, or
null |
static ServiceDialogProvider |
getServiceDialogProvider(java.lang.String serviceDialogProviderClassName)
Returns the
ServiceDialogProvider instance if available, or
null |
public static final java.lang.String SERVICE_CONFIGURATION_PATH_PROPERTY_KEY
public static final java.lang.String SERVICE_DIALOG_PROVIDER_CLASS_NAME_PROPERTY_KEY
public static final java.lang.String DEFAULT_SERVICE_DESCRIPTOR_READER_CLASSNAME
public static final java.lang.String DEFAULT_SERVICE_DESCRIPTOR_WRITER_CLASSNAME
public static final java.lang.String DEFAULT_SERVICE_DIALOG_PROVIDER_CLASSNAME
public static final java.lang.String DEFAULT_SERVICE_DESCRIPTOR_EDITOR_PROVIDER_CLASSNAME
public static final java.lang.String DEFAULT_SERVICE_CONFIGURATION_PATH
public static final java.lang.String DEFAULT_USER_SERVICE_CONFIGURATION_FILENAME
public static ServiceDescriptorReader getDefaultServiceDescriptorReader()
ServiceDescriptorReader
instanceServiceDescriptorReader
instance, or
null
if no service descriptor reader is availablepublic static ServiceDescriptorWriter getDefaultServiceDescriptorWriter()
ServiceDescriptorWriter
instanceServiceDescriptorWriter
instance, or
null
if no service descriptor writer is availablepublic static ServiceDialogProvider getDefaultServiceDialogProvider()
ServiceDialogProvider
instanceServiceDialogProvider
instance, or
null
if no service dialog provider is availablepublic static ServiceDescriptorEditorProvider getDefaultServiceDescriptorEditorProvider()
ServiceDescriptorEditorProvider
instanceServiceDescriptorEditorProvider
instance, or
null
if no service descriptor editor provider is
availablepublic static java.io.InputStream getServiceDescriptorConfigurationAsStream()
InputStream
with service configuration.InputStream
with service configuration or
null
if not possible to get a configurationpublic static java.io.InputStream getServiceDescriptorConfigurationAsStream(UserSettings settings)
InputStream
with service configuration.settings
- the user settingsInputStream
with service configuration or null
if not possible to get a
configurationpublic static java.io.InputStream getServiceDescriptorConfigurationAsStream(java.lang.String configPath)
null
.configPath
- the path or URL to service descriptor configuration. Empty String or null
falls back to
default configuration file.null
public static ServiceDescriptorReader getServiceDescriptorReader(java.lang.String descriptorReaderClassName)
ServiceDescriptorReader
instance if available, or
null
descriptorReaderClassName
- the class name of the service descriptor writerServiceDescriptorReader
instance if available, or
null
public static ServiceDescriptorWriter getServiceDescriptorWriter(java.lang.String descriptorWriterClassName)
ServiceDescriptorWriter
instance if available, or
null
descriptorWriterClassName
- the class name of the service descriptor writerServiceDescriptorWriter
instance if available, or
null
public static ServiceDialogProvider getServiceDialogProvider(java.lang.String serviceDialogProviderClassName)
ServiceDialogProvider
instance if available, or
null
serviceDialogProviderClassName
- the class name of the service dialog providerServiceDialogProvider
instance if available, or
null
public static ServiceDescriptorEditorProvider getServiceDescriptorEditorProvider(java.lang.String serviceDescriptorEditorProviderClassName)
ServiceDescriptorEditorProvider
instance if
available, or null
serviceDescriptorEditorProviderClassName
- the class name of the service descriptor editor providerServiceDescriptorEditorProvider
instance if
available, or null