Class Scope


  • public final class Scope
    extends java.lang.Object
    A specialized constants class to provide some compile-time typo checking and runtime validation for scopes specified in annotations, toolbox configs, etc.
    Version:
    $Id: Toolbox.java 511959 2007-02-26 19:24:39Z nbubna $
    Author:
    Nathan Bubna
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String APPLICATION  
      private static Scope INSTANCE  
      static java.lang.String REQUEST  
      static java.lang.String SESSION  
      private static java.util.List<java.lang.String> VALUES  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Scope()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void add​(java.lang.String newScope)  
      static boolean exists​(java.lang.String scope)  
      static Scope getInstance()  
      static java.util.List<java.lang.String> values()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • VALUES

        private static final java.util.List<java.lang.String> VALUES
      • INSTANCE

        private static final Scope INSTANCE
    • Constructor Detail

      • Scope

        private Scope()
    • Method Detail

      • getInstance

        public static final Scope getInstance()
      • add

        public static final void add​(java.lang.String newScope)
      • exists

        public static final boolean exists​(java.lang.String scope)
      • values

        public static final java.util.List<java.lang.String> values()