scopetype.java

来自「spring的WEB开发插件,支持多状态WEB开发」· Java 代码 · 共 47 行

JAVA
47
字号
/*
 * Copyright 2002-2005 the original author or authors.
 *
 * 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.
 */
package org.springframework.webflow;

import org.springframework.core.enums.ShortCodedLabeledEnum;

/**
 * Supported scope types for the web flow system.
 * 
 * @author Keith Donald
 * @author Erwin Vervaet
 */
public class ScopeType extends ShortCodedLabeledEnum {

	/**
	 * Constant indicating request scope.  Data in request scope lives for the life of 
	 * a request submitted to a flow execution for processing.
	 */
	public static final ScopeType REQUEST = new ScopeType(0, "request");

	/**
	 * Constant indicating flow scope.  Data in flow scope is shared by all
	 * artifacts of a flow (actions, view, states, etc) and lives for the life
	 * of the executing flow.
	 */
	public static final ScopeType FLOW = new ScopeType(1, "flow");

	/**
	 * Private constructor because this is a typesafe enum!
	 */
	private ScopeType(int code, String label) {
		super(code, label);
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?