001/*
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements.  See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License.  You may obtain a copy of the License at
008 *
009 *     http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017
018package org.apache.commons.scxml2.env.javascript;
019
020import java.util.Map;
021
022import org.apache.commons.scxml2.Context;
023import org.apache.commons.scxml2.env.SimpleContext;
024
025/**
026 * SCXML Context for use by the JSEvaluator. It is simply a 'no functionality'
027 * extension of SimpleContext that has been implemented to reduce the impact
028 * if the JSEvaluator requires additional functionality at a later stage.
029 * <p>
030 * Could easily be dispensed with.
031 *
032 */
033public class JSContext extends SimpleContext {
034
035    /** Serial version UID. */
036    private static final long serialVersionUID = 1L;
037
038    // CONSTRUCTORS
039
040    /**
041     * Default constructor - just invokes the SimpleContext default
042     * constructor.
043     */
044    public JSContext() {
045        super();
046    }
047
048    /**
049     * Constructor with initial vars.
050     * @param parent The parent context
051     * @param initialVars The initial set of variables.
052     */
053    public JSContext(final Context parent, final Map<String, Object> initialVars) {
054        super(parent, initialVars);
055    }
056
057    /**
058     * Child constructor. Just invokes the identical SimpleContext
059     * constructor.
060     *
061     * @param parent Parent context for this context.
062     *
063     */
064    public JSContext(final Context parent) {
065        super(parent);
066    }
067
068}
069