Class Backends

    • Constructor Detail

      • Backends

        public Backends()
    • Method Detail

      • editBackends

        public static void editBackends​(String application,
                                        boolean system,
                                        Runnable updatedRunnable)
        Opens a dialog to edit the backend- and driver configurations.
        Parameters:
        application - the application name
        system - true if user system preferences, else user preferences
        updatedRunnable - invoked whenever the backend were modified, null if none
      • setApplication

        public void setApplication​(String application,
                                   boolean system)
        Sets the application name and loads the configured backends.
        Parameters:
        application - the application name
        system - true if use system preferences, else user preferences
      • getUpdatedRunnable

        public Runnable getUpdatedRunnable()
        Gets the runnable invoked when backends were updated.
        Returns:
        the runnable, null if none
      • setUpdatedRunnable

        public void setUpdatedRunnable​(Runnable updatedRunnable)
        Sets the runnable invoked when backends were updated.
        Parameters:
        updatedRunnable - the runnable, null if none
      • getBackend

        public org.tentackle.session.BackendConfiguration getBackend()
        Gets the selected backend.
        Returns:
        the backend, null if none selected
      • persist

        public void persist()
        Persists currently edited backend and/or driver.
        Invoked when dialog is closed.