public class SessionDefaults extends Object
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 and Description |
|---|
SessionDefaults()
Creates and initializes a new SessionDefaults instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
assign(Session session) |
Color |
getColor()
Returns the default color for newly created sessions.
|
Level |
getLevel()
Returns the default log level for newly created sessions.
|
boolean |
isActive()
Returns the default active status for newly created sessions.
|
void |
setActive(boolean active)
Sets the default active status for newly created sessions.
|
void |
setColor(Color color)
Sets the default color for newly created sessions.
|
void |
setLevel(Level level)
Sets the default log level for newly created sessions.
|
public SessionDefaults()
public boolean isActive()
Please see Session.setActive method for general information about the active status of sessions.
public void setActive(boolean active)
Please see Session.setActive method for general information about the active status of sessions.
active - The new default active status for newly created sessionspublic Color getColor()
public void setColor(Color color)
color - The new default color for newly created sessionspublic Level getLevel()
Please see Session.setLevel method for general information about the log level of sessions.
public void setLevel(Level level)
level - The new default log level for newly created sessionsprotected void assign(Session session)
Copyright © 2023. All rights reserved.