Class AbstractSessionConfiguration

java.lang.Object
org.tentackle.session.AbstractSessionConfiguration
All Implemented Interfaces:
ScopeConfigurator, Validateable
Direct Known Subclasses:
BackendConfiguration, DriverConfiguration

public abstract class AbstractSessionConfiguration extends Object implements Validateable, ScopeConfigurator
  • Constructor Details

    • AbstractSessionConfiguration

      public AbstractSessionConfiguration()
      Parent constructor.
  • Method Details

    • getName

      @Bindable @NotNull public String getName()
      Gets the symbolic name.
      Returns:
      the name
    • setName

      @Bindable public void setName(String name)
      Sets the symbolic name.
      Parameters:
      name - the name
    • isPersisted

      public boolean isPersisted()
      Returns whether configuration is loaded from preferences.
      Returns:
      true if persisted, false if just created in memory only
    • setPersisted

      public void setPersisted(boolean persisted)
      Sets whether configuration is loaded from preferences.
      Parameters:
      persisted - true if persisted, false if just created in memory only
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getDefaultScopes

      public Class<? extends ValidationScope>[] getDefaultScopes()
      Description copied from interface: ScopeConfigurator
      Gets the validation scopes to be used as the default for annotations unless something different is defined.
      Specified by:
      getDefaultScopes in interface ScopeConfigurator
      Returns:
      the default scopes
    • getPrefNode

      protected static Preferences getPrefNode(String nodeName, boolean system)
      Gets the configuration parent node.
      Parameters:
      nodeName - the topmost node
      system - true if load from system preferences, else user preferences
      Returns:
      the node