getpropertyaction.java

来自「Mobile 应用程序使用 Java Micro Edition (Java M」· Java 代码 · 共 29 行

JAVA
29
字号
/* * @(#)GetPropertyAction.java	1.10 05/11/17 *  * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package com.sun.jmx.mbeanserver;import java.security.PrivilegedAction;/** * Utility class to be used by the method <tt>AccessControler.doPrivileged</tt> * to get a system property. * * @since 1.5 */public class GetPropertyAction implements PrivilegedAction<String> {    private final String key;    public GetPropertyAction(String key) {	this.key = key;    }    public String run() {	return System.getProperty(key);    }}

⌨️ 快捷键说明

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