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
Base class for
BackendConfiguration and DriverConfiguration.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends ValidationScope>[]getName()Gets the symbolic name.protected static PreferencesgetPrefNode(String nodeName, boolean system) Gets the configuration parent node.booleanReturns whether configuration is loaded from preferences.voidSets the symbolic name.voidsetPersisted(boolean persisted) Sets whether configuration is loaded from preferences.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.tentackle.validate.Validateable
validate
-
Constructor Details
-
AbstractSessionConfiguration
public AbstractSessionConfiguration()Parent constructor.
-
-
Method Details
-
getName
Gets the symbolic name.- Returns:
- the name
-
setName
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
-
getDefaultScopes
- Specified by:
getDefaultScopesin interfaceScopeConfigurator
-
getPrefNode
Gets the configuration parent node.- Parameters:
nodeName- the topmost nodesystem- true if load from system preferences, else user preferences- Returns:
- the node
-