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.

45 lines
676 B

/*
* Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package javax.xml.bind;
import java.security.PrivilegedAction;
/**
* {@link PrivilegedAction} that gets the system property value.
* @author Kohsuke Kawaguchi
*/
final class GetPropertyAction implements PrivilegedAction<String> {
private final String propertyName;
public GetPropertyAction(String propertyName) {
this.propertyName = propertyName;
}
public String run() {
return System.getProperty(propertyName);
}
}