syspathglobal.java

来自「这是一个实施监控程序, 这是一个实施监控程序,」· Java 代码 · 共 48 行

JAVA
48
字号
package com.util.task;
/**
 * 保存一些路径
 * @author 
 *
 */
public class SysPathGlobal {
	 private static String contextPath=null;                     //上下文路径
	    public static synchronized void setContextPath(String _contextPath)
	    {
	        contextPath=_contextPath;
	    }

	    public static synchronized String getContextPath()
	    {
	        return contextPath;
	    }
	   private SysPathGlobal(){}
	   private static String typePath=null;
	   private static String bakPath=null;
	   private static String errorPath=null;
		public static  String getBakPath() {
			return bakPath;
		}
	
		public static  void setBakPath(String bakPath) {
			SysPathGlobal.bakPath = bakPath;
		}

		public static  String getErrorPath() {
			return errorPath;
		}

		public static  void setErrorPath(String errorPath) {
			SysPathGlobal.errorPath = errorPath;
		}

//		public static String getTypePath() {
//			return typePath;
//		}
//
//		public static void setTypePath(String typePath) {
//			SysCunChuGlobal.typePath = typePath;
//		}
	   

}

⌨️ 快捷键说明

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