All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hyperscala.web.Scope.scala Maven / Gradle / Ivy

There is a newer version: 0.9.0
Show newest version
package org.hyperscala.web

import org.powerscala.enum.{Enumerated, EnumEntry}

/**
 * @author Matt Hicks 
 */
class Scope private() extends EnumEntry

object Scope extends Enumerated[Scope] {
  /**
   * Defines a single instance that is shared across all sessions, users, and browsers.
   */
  val Application = new Scope
  /**
   * Defines an instance per browser session.
   */
  val Session = new Scope
  /**
   * A new instance is created for every request. No caching.
   */
  val Request = new Scope
  /**
   * Works like Request in that a new instance is created for every request. However, the page is cached temporarily to
   * allow real-time communication with it.
   */
  val Page = new Scope
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy