Class ServerScope

All Implemented Interfaces:
Serializable, Map<Key,Object>, IReferenceable, IScope, IStruct, IType, IListenable

public class ServerScope extends BaseScope
Represents the BoxLang "server" scope container

Note, this doesn't have to be a "web", it can reprsesent any long-running runtime which processes one or more "requests" for execution.

Unmodifiables keys are : os, separator, java, system

See Also:
  • Field Details

    • name

      public static final Key name
      -------------------------------------------------------------------------- Public Properties --------------------------------------------------------------------------
  • Constructor Details

    • ServerScope

      public ServerScope()
      -------------------------------------------------------------------------- Constructors --------------------------------------------------------------------------
  • Method Details

    • initialize

      public IScope initialize()
      Initialize the Server scope, so now modules can collaborate
    • put

      public Object put(Key key, Object value)
      Put a value into the scope container and throw an exception if the key is unmodifiable. Unmodifiables keys are : coldfusion, os, separator, java, system
      Specified by:
      put in interface IStruct
      Specified by:
      put in interface Map<Key,Object>
      Overrides:
      put in class Struct
      Parameters:
      key - The key to set
      value - The value to set
      Returns:
      The previous value of the key, or null if not found