Package com.gurock.smartinspect.session
Class SessionDefaults
- java.lang.Object
-
- com.gurock.smartinspect.session.SessionDefaults
-
public class SessionDefaults extends Object
Specifies the default property values for newly created sessions.This class is used by the SmartInspect class to customize the default property values for newly created sessions. Sessions that will be created by or passed to the addSession method of the SmartInspect class will be automatically configured with the values of the session defaults object as returned by the SmartInspect.getSessionDefaults method.
This class is guaranteed to be threadsafe.
-
-
Constructor Summary
Constructors Constructor Description SessionDefaults()Creates and initializes a new SessionDefaults instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidassign(Session session)ColorgetColor()Returns the default color for newly created sessions.LevelgetLevel()Returns the default log level for newly created sessions.booleanisActive()Returns the default active status for newly created sessions.voidsetActive(boolean active)Sets the default active status for newly created sessions.voidsetColor(Color color)Sets the default color for newly created sessions.voidsetLevel(Level level)Sets the default log level for newly created sessions.
-
-
-
Method Detail
-
isActive
public boolean isActive()
Returns the default active status for newly created sessions.Please see Session.setActive method for general information about the active status of sessions.
- Returns:
- The default active status for newly created sessions
-
setActive
public void setActive(boolean active)
Sets the default active status for newly created sessions.Please see Session.setActive method for general information about the active status of sessions.
- Parameters:
active- The new default active status for newly created sessions
-
getColor
public Color getColor()
Returns the default color for newly created sessions. Please see Session.setColor method for general information about the background color of sessions.- Returns:
- The default color for newly created sessions
-
setColor
public void setColor(Color color)
Sets the default color for newly created sessions. Please see Session.setColor method for general information about the background color of sessions.- Parameters:
color- The new default color for newly created sessions
-
getLevel
public Level getLevel()
Returns the default log level for newly created sessions.Please see Session.setLevel method for general information about the log level of sessions.
- Returns:
- The default log level for newly created sessions
-
setLevel
public void setLevel(Level level)
Sets the default log level for newly created sessions. Please see Session.setLevel method for general information about the log level of sessions.- Parameters:
level- The new default log level for newly created sessions
-
assign
protected void assign(Session session)
-
-