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
-
Method Summary
Modifier and TypeMethodDescriptionClass<? extends ValidationScope>[]
Gets the validation scopes to be used as the default for annotations unless something different is defined.getName()
Gets the symbolic name.protected static Preferences
getPrefNode
(String nodeName, boolean system) Gets the configuration parent node.boolean
Returns whether configuration is loaded from preferences.void
Sets the symbolic name.void
setPersisted
(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, wait
Methods 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
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 interfaceScopeConfigurator
- Returns:
- the default scopes
-
getPrefNode
Gets the configuration parent node.- Parameters:
nodeName
- the topmost nodesystem
- true if load from system preferences, else user preferences- Returns:
- the node
-