Class 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 Detail

      • SessionDefaults

        public SessionDefaults()
        Creates and initializes a new SessionDefaults instance.
    • 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)