You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.7 KiB
62 lines
1.7 KiB
|
|
/* |
|
* Copyright 2004-2005 OpenSymphony |
|
* |
|
* Licensed under the Apache License, Version 2.0 (the "License"); you may not |
|
* use this file except in compliance with the License. You may obtain a copy |
|
* of the License at |
|
* |
|
* http://www.apache.org/licenses/LICENSE-2.0 |
|
* |
|
* Unless required by applicable law or agreed to in writing, software |
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
|
* License for the specific language governing permissions and limitations |
|
* under the License. |
|
* |
|
*/ |
|
|
|
/* |
|
* Previously Copyright (c) 2001-2004 James House |
|
*/ |
|
package com.fr.third.org.quartz; |
|
|
|
import java.io.Serializable; |
|
import java.util.Map; |
|
|
|
import com.fr.third.org.quartz.utils.StringKeyDirtyFlagMap; |
|
|
|
/** |
|
* <p> |
|
* Holds context/environment data that can be made available to Jobs as they |
|
* are executed. This feature is much like the ServletContext feature when |
|
* working with J2EE servlets. |
|
* </p> |
|
* |
|
* <p> |
|
* Future versions of Quartz may make distinctions on how it propogates |
|
* data in <code>SchedulerContext</code> between instances of proxies to a |
|
* single scheduler instance - i.e. if Quartz is being used via RMI. |
|
* </p> |
|
* |
|
* @see Scheduler#getContext |
|
* |
|
* @author James House |
|
*/ |
|
public class SchedulerContext extends StringKeyDirtyFlagMap implements Serializable { |
|
/** |
|
* Create an empty <code>SchedulerContext</code>. |
|
*/ |
|
public SchedulerContext() { |
|
super(15); |
|
} |
|
|
|
/** |
|
* Create a <code>SchedulerContext</code> with the given data. |
|
*/ |
|
public SchedulerContext(Map map) { |
|
this(); |
|
|
|
putAll(map); |
|
} |
|
}
|
|
|