Class ServiceDescriptorTools

    • Field Detail

      • SERVICE_CONFIGURATION_PATH_PROPERTY_KEY

        public static final String SERVICE_CONFIGURATION_PATH_PROPERTY_KEY
        Java System Property key to globally override default configuration path. Accepts absolute file path or URL in String format.
        Since:
        5.12
        See Also:
        Constant Field Values
      • SERVICE_DIALOG_PROVIDER_CLASS_NAME_PROPERTY_KEY

        public static final String SERVICE_DIALOG_PROVIDER_CLASS_NAME_PROPERTY_KEY
        Java System Property key to globally override default Service Dialog Provider class with custom implementation.
        Since:
        6.0
        See Also:
        Constant Field Values
      • DEFAULT_SERVICE_DESCRIPTOR_READER_CLASSNAME

        public static final String DEFAULT_SERVICE_DESCRIPTOR_READER_CLASSNAME
        the Marvin Default service descriptor reader class
        See Also:
        Constant Field Values
      • DEFAULT_SERVICE_DESCRIPTOR_WRITER_CLASSNAME

        public static final String DEFAULT_SERVICE_DESCRIPTOR_WRITER_CLASSNAME
        the Marvin Default service descriptor writer class
        See Also:
        Constant Field Values
      • DEFAULT_SERVICE_DIALOG_PROVIDER_CLASSNAME

        public static final String DEFAULT_SERVICE_DIALOG_PROVIDER_CLASSNAME
        the Marvin Default service dialog provider class
        See Also:
        Constant Field Values
      • DEFAULT_SERVICE_DESCRIPTOR_EDITOR_PROVIDER_CLASSNAME

        public static final String DEFAULT_SERVICE_DESCRIPTOR_EDITOR_PROVIDER_CLASSNAME
        the Marvin Default service descriptor editor provider class
        See Also:
        Constant Field Values
      • DEFAULT_SERVICE_CONFIGURATION_PATH

        public static final String DEFAULT_SERVICE_CONFIGURATION_PATH
        Path to default services configuration xml
        See Also:
        Constant Field Values
      • DEFAULT_USER_SERVICE_CONFIGURATION_FILENAME

        public static final String DEFAULT_USER_SERVICE_CONFIGURATION_FILENAME
        name of default user service configuration file
        See Also:
        Constant Field Values
    • Constructor Detail

      • ServiceDescriptorTools

        public ServiceDescriptorTools()
    • Method Detail

      • getServiceDescriptorConfigurationAsStream

        public static InputStream getServiceDescriptorConfigurationAsStream()
        Returns an InputStream with service configuration.
        Returns:
        an InputStream with service configuration or null if not possible to get a configuration
      • getServiceDescriptorConfigurationAsStream

        public static InputStream getServiceDescriptorConfigurationAsStream​(UserSettings settings)
        Returns an InputStream with service configuration.
        Parameters:
        settings - the user settings
        Returns:
        an InputStream with service configuration or null if not possible to get a configuration
      • getServiceDescriptorConfigurationAsStream

        public static InputStream getServiceDescriptorConfigurationAsStream​(String configPath)
        Returns the service descriptor configuration stream from path, or null.
        Parameters:
        configPath - the path or URL to service descriptor configuration. Empty String or null falls back to default configuration file.
        Returns:
        the service descriptor configuration stream from path, or null
        Since:
        5.10
      • getServiceDialogProvider

        public static ServiceDialogProvider getServiceDialogProvider​(String serviceDialogProviderClassName)
        Returns the ServiceDialogProvider instance if available, or null
        Parameters:
        serviceDialogProviderClassName - the class name of the service dialog provider
        Returns:
        the ServiceDialogProvider instance if available, or null