Home » quartz-1.6.0 » org » quartz » [javadoc | source]

    1   
    2   /* 
    3    * Copyright 2004-2005 OpenSymphony 
    4    * 
    5    * Licensed under the Apache License, Version 2.0 (the "License"); you may not 
    6    * use this file except in compliance with the License. You may obtain a copy 
    7    * of the License at 
    8    * 
    9    *   http://www.apache.org/licenses/LICENSE-2.0 
   10    *   
   11    * Unless required by applicable law or agreed to in writing, software 
   12    * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 
   13    * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 
   14    * License for the specific language governing permissions and limitations 
   15    * under the License.
   16    * 
   17    */
   18   
   19   /*
   20    * Previously Copyright (c) 2001-2004 James House
   21    */
   22   package org.quartz;
   23   
   24   import java.io.Serializable;
   25   import java.util.Map;
   26   
   27   import org.quartz.utils.StringKeyDirtyFlagMap;
   28   
   29   /**
   30    * <p>
   31    * Holds context/environment data that can be made available to Jobs as they
   32    * are executed. This feature is much like the ServletContext feature when
   33    * working with J2EE servlets.
   34    * </p>
   35    * 
   36    * <p>
   37    * Future versions of Quartz may make distinctions on how it propogates
   38    * data in <code>SchedulerContext</code> between instances of proxies to a 
   39    * single scheduler instance - i.e. if Quartz is being used via RMI.
   40    * </p>
   41    *  
   42    * @see Scheduler#getContext
   43    * 
   44    * @author James House
   45    */
   46   public class SchedulerContext extends StringKeyDirtyFlagMap implements Serializable {
   47       /**
   48        * Create an empty <code>SchedulerContext</code>.
   49        */
   50       public SchedulerContext() {
   51           super(15);
   52       }
   53   
   54       /**
   55        * Create a <code>SchedulerContext</code> with the given data.
   56        */
   57       public SchedulerContext(Map map) {
   58           this();
   59   
   60           putAll(map);
   61       }
   62   }

Home » quartz-1.6.0 » org » quartz » [javadoc | source]